From: tokkee Date: Sat, 18 Feb 2006 10:22:39 +0000 (+0000) Subject: Fixed ACPI part of battery plugin. X-Git-Tag: collectd-3.8.0~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e9de6c0d95d3bf543ae2a009a353cf5902d507a;p=collectd.git Fixed ACPI part of battery plugin. --- diff --git a/src/battery.c b/src/battery.c index 541bab3d..6c7e2b50 100644 --- a/src/battery.c +++ b/src/battery.c @@ -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);