summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3bd0e6)
raw | patch | inline | side by side (parent: b3bd0e6)
author | tokkee <tokkee> | |
Sat, 18 Feb 2006 10:22:39 +0000 (10:22 +0000) | ||
committer | tokkee <tokkee> | |
Sat, 18 Feb 2006 10:22:39 +0000 (10:22 +0000) |
src/battery.c | patch | blob | history |
diff --git a/src/battery.c b/src/battery.c
index 541bab3d09a6d203f43bf6e8d2ddf2be2124a71b..6c7e2b50d6d17b4e6e77be41d71fc04ff24d911b 100644 (file)
--- a/src/battery.c
+++ b/src/battery.c
* [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);