Fixed ACPI part of battery plugin.
authortokkee <tokkee>
Sat, 18 Feb 2006 10:22:39 +0000 (10:22 +0000)
committertokkee <tokkee>
Sat, 18 Feb 2006 10:22:39 +0000 (10:22 +0000)
src/battery.c

index 541bab3..6c7e2b5 100644 (file)
@@ -278,7 +278,7 @@ static void battery_read (void)
                         * [11:00] <@tokkee> remaining capacity:      4136 mAh
                         * [11:00] <@tokkee> present voltage:         12428 mV
                         */
-                       while (fgets (buffer, BUFSIZE, fh) == NULL)
+                       while (fgets (buffer, BUFSIZE, fh) != NULL)
                        {
                                numfields = strsplit (buffer, fields, 8);