Skip to content

Commit 7b5c5e9

Browse files
committed
updated stat.xsl; thanks to @misiek08
1 parent 0958e4f commit 7b5c5e9

File tree

1 file changed

+21
-36
lines changed

1 file changed

+21
-36
lines changed

stat.xsl

Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<th>#clients</th>
2727
<th>In bytes</th>
2828
<th>Out bytes</th>
29-
<th>In Bandwidth</th>
30-
<th>Out Bandwidth</th>
29+
<th>Input bits/s</th>
30+
<th>Output bits/s</th>
3131
<th>Size</th>
3232
<th>Frame Rate</th>
3333
<th>Video</th>
@@ -48,20 +48,12 @@
4848
</xsl:call-template>
4949
</td>
5050
<td>
51-
<xsl:call-template name="showsize">
52-
<xsl:with-param name="size" select="bwin div 8"/>
53-
</xsl:call-template>/s
54-
<br />
5551
<xsl:call-template name="showsize">
5652
<xsl:with-param name="size" select="bwin"/>
5753
<xsl:with-param name="bits" select="1"/>
5854
</xsl:call-template>/s
5955
</td>
6056
<td>
61-
<xsl:call-template name="showsize">
62-
<xsl:with-param name="size" select="bwout div 8"/>
63-
</xsl:call-template>/s
64-
<br />
6557
<xsl:call-template name="showsize">
6658
<xsl:with-param name="size" select="bwout"/>
6759
<xsl:with-param name="bits" select="1"/>
@@ -129,31 +121,24 @@
129121
<xsl:call-template name="showsize">
130122
<xsl:with-param name="size" select="in"/>
131123
</xsl:call-template>
132-
</td>
133-
<td>
134-
<xsl:call-template name="showsize">
135-
<xsl:with-param name="size" select="out"/>
136-
</xsl:call-template>
137-
</td>
138-
<td>
139-
<xsl:call-template name="showsize">
140-
<xsl:with-param name="size" select="bwin div 8"/>
141-
</xsl:call-template>/s
142-
<br />
143-
<xsl:call-template name="showsize">
144-
<xsl:with-param name="size" select="bwin"/>
145-
<xsl:with-param name="bits" select="1"/>
146-
</xsl:call-template>/s
147-
</td>
148-
<td><xsl:call-template name="showsize">
149-
<xsl:with-param name="size" select="bwout div 8"/>
150-
</xsl:call-template>/s
151-
<br />
152-
<xsl:call-template name="showsize">
153-
<xsl:with-param name="size" select="bwout"/>
154-
<xsl:with-param name="bits" select="1"/>
155-
</xsl:call-template>/s
156-
</td>
124+
</td>
125+
<td>
126+
<xsl:call-template name="showsize">
127+
<xsl:with-param name="size" select="out"/>
128+
</xsl:call-template>
129+
</td>
130+
<td>
131+
<xsl:call-template name="showsize">
132+
<xsl:with-param name="size" select="bwin"/>
133+
<xsl:with-param name="bits" select="1"/>
134+
</xsl:call-template>/s
135+
</td>
136+
<td>
137+
<xsl:call-template name="showsize">
138+
<xsl:with-param name="size" select="bwout"/>
139+
<xsl:with-param name="bits" select="1"/>
140+
</xsl:call-template>/s
141+
</td>
157142
<td><xsl:value-of select="meta/width"/>x<xsl:value-of select="meta/height"/></td>
158143
<td align="middle"><xsl:value-of select="meta/framerate"/></td>
159144
<td>
@@ -230,7 +215,7 @@
230215
<xsl:when test="$sizen &gt;= 1024">
231216
<xsl:value-of select="format-number($sizen div 1024,'#.##')"/> M</xsl:when>
232217
<xsl:when test="$sizen &gt;= 0">
233-
<xsl:value-of select="$sizen"/>K</xsl:when>
218+
<xsl:value-of select="$sizen"/> K</xsl:when>
234219
</xsl:choose>
235220
<xsl:choose>
236221
<xsl:when test="$bits = 1">b</xsl:when>

0 commit comments

Comments
 (0)