]> granicus.if.org Git - sysstat/commitdiff
sadf: XML: A_PWR_BAT: Fix XSD document
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 30 Dec 2022 07:43:26 +0000 (08:43 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 30 Dec 2022 07:43:26 +0000 (08:43 +0100)
Variation of battery capacity may be negative. So update XSD document to
accept negative values.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
xml/sysstat.xsd

index 2c1f4c9d040b70d658fc3806801ccff44d982cff..01aab10a05bc6227f15a59f426af4d99288565a6 100644 (file)
 <xs:complexType name="bat-type">
        <xs:attribute name="number" type="xs:nonNegativeInteger" use="required"></xs:attribute>
        <xs:attribute name="percent-capacity" type="xs:nonNegativeInteger" use="required"></xs:attribute>
-       <xs:attribute name="variation" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="variation" type="negative-hundredth-type" use="required"></xs:attribute>
        <xs:attribute name="status" type="xs:string" use="required"></xs:attribute>
 </xs:complexType>