]> xenbits.xen.org Git - xenclient/xen-pq.git/commitdiff
Minor change to battery state flag to fix an issue obvious in certain environment.
authorKamala Narasimhan <kamala.narasimhan@citrix.com>
Tue, 20 Oct 2009 16:00:38 +0000 (12:00 -0400)
committerKamala Narasimhan <kamala.narasimhan@citrix.com>
Tue, 20 Oct 2009 16:00:38 +0000 (12:00 -0400)
master/power-management-enhancement

index 41147bc8eaf4a2a19ba25eace0733bdd87010b3b..350b7a212d7eb389b1a69348b9861d784a74a68f 100644 (file)
@@ -1101,7 +1101,7 @@ index 0000000..c9b80cd
 +}
 +
 diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c
-index 28de744..7fffcf7 100644
+index 28de744..b086092 100644
 --- a/tools/xenpmd/xenpmd.c
 +++ b/tools/xenpmd/xenpmd.c
 @@ -33,68 +33,10 @@
@@ -1197,7 +1197,7 @@ index 28de744..7fffcf7 100644
 +
 +    if ( strstr(attrib_name, "capacity state") )
 +    {
-+        if ( strstr(attrib_value, "ok") )
++        if ( strstr(attrib_value, "critical") )
 +            status->state |= 4;
          return;
      }