Skip to content

Commit

Permalink
Fix tape-reserved size calculation
Browse files Browse the repository at this point in the history
Calculation of used and reserved tape sizes looks like copy-paste and
condition in sum() for reserved was no changed.
Fixed now.

Signed-off-by: Igor Tkachenko <IATkachenko@gmail.com>
  • Loading branch information
IATkachenko authored and mksahakyan committed Jan 28, 2020
1 parent cfb0b5d commit 6bf99a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skel/share/xml/xslt/storage-descriptor.xsl
Expand Up @@ -242,7 +242,7 @@
<xsl:if test="collection">
<xsl:variable name="total" select="sum(collection/space/total)"/>
<xsl:variable name="used" select="sum(collection/space/used)"/>
<xsl:variable name="reserved" select="sum(collection/space/used)"/>
<xsl:variable name="reserved" select="sum(collection/space/reserved)"/>

<xsl:text> "nearline": {&#x0a;</xsl:text>
<xsl:value-of select="concat(' &quot;totalsize&quot;: ',$total,',&#x0a;')"/>
Expand Down

0 comments on commit 6bf99a6

Please sign in to comment.