Skip to content

Commit

Permalink
#22 show total
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Nov 20, 2016
1 parent 982e15a commit 06056dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/xsl/index.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
<xsl:text> to get an upgrade before we ban you.</xsl:text>
</p>
<xsl:apply-templates select="domains"/>
<p>
<xsl:text>Total traffic over the last ten days: </xsl:text>
<strong><xsl:value-of select="format-number(sum(domains/domain/usage) div (1024 * 1024 * 1024), '###,###,###')"/></strong>
<xsl:text>Gb.</xsl:text>
</p>
</xsl:if>
<xsl:if test="not(domains/domain)">
<p>
Expand Down

0 comments on commit 06056dc

Please sign in to comment.