Skip to content

Commit

Permalink
cached, buffers - order change
Browse files Browse the repository at this point in the history
  • Loading branch information
namiltd committed Feb 14, 2015
1 parent 155dba7 commit 729933e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions phpsysinfo.xslt
Expand Up @@ -694,18 +694,18 @@
</tr>
</xsl:if>
<xsl:if
test="count(@Buffers )&gt;0">
test="count(@Cached )&gt;0">
<tr>
<td
style="width:200px;">
<span>
<xsl:text>- Buffers</xsl:text>
<xsl:text>- Cached</xsl:text>
</span>
</td>
<td
style="width:285px;">
<div
style="float:left; width:{concat( @BuffersPercent , &apos;px&apos; )}; "
style="float:left; width:{concat( @CachedPercent , &apos;px&apos; )}; "
class="bar">
<span>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
Expand All @@ -717,7 +717,7 @@
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
</span>
<xsl:value-of
select="@BuffersPercent" />
select="@CachedPercent" />
<span>
<xsl:text>%</xsl:text>
</span>
Expand All @@ -730,7 +730,7 @@
style="width:100px;"
class="right">
<xsl:value-of
select="round(@Buffers div 1024)" />
select="round(@Cached div 1024)" />
<span>
<xsl:text> KiB</xsl:text>
</span>
Expand All @@ -741,18 +741,18 @@
</tr>
</xsl:if>
<xsl:if
test="count(@Cached )&gt;0">
test="count(@Buffers )&gt;0">
<tr>
<td
style="width:200px;">
<span>
<xsl:text>- Cached</xsl:text>
<xsl:text>- Buffers</xsl:text>
</span>
</td>
<td
style="width:285px;">
<div
style="float:left; width:{concat( @CachedPercent , &apos;px&apos; )}; "
style="float:left; width:{concat( @BuffersPercent , &apos;px&apos; )}; "
class="bar">
<span>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
Expand All @@ -764,7 +764,7 @@
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
</span>
<xsl:value-of
select="@CachedPercent" />
select="@BuffersPercent" />
<span>
<xsl:text>%</xsl:text>
</span>
Expand All @@ -777,7 +777,7 @@
style="width:100px;"
class="right">
<xsl:value-of
select="round(@Cached div 1024)" />
select="round(@Buffers div 1024)" />
<span>
<xsl:text> KiB</xsl:text>
</span>
Expand Down
8 changes: 4 additions & 4 deletions phpsysinfo3.xsd
Expand Up @@ -243,28 +243,28 @@
</restriction>
</simpleType>
</attribute>
<attribute name="Buffers" use="optional">
<attribute name="Cached" use="optional">
<simpleType>
<restriction base="unsignedLong">
<minInclusive value="0"></minInclusive>
</restriction>
</simpleType>
</attribute>
<attribute name="BuffersPercent" use="optional">
<attribute name="CachedPercent" use="optional">
<simpleType>
<restriction base="unsignedLong">
<minInclusive value="0"></minInclusive>
</restriction>
</simpleType>
</attribute>
<attribute name="Cached" use="optional">
<attribute name="Buffers" use="optional">
<simpleType>
<restriction base="unsignedLong">
<minInclusive value="0"></minInclusive>
</restriction>
</simpleType>
</attribute>
<attribute name="CachedPercent" use="optional">
<attribute name="BuffersPercent" use="optional">
<simpleType>
<restriction base="unsignedLong">
<minInclusive value="0"></minInclusive>
Expand Down

0 comments on commit 729933e

Please sign in to comment.