summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 635f3a0)
raw | patch | inline | side by side (parent: 635f3a0)
author | octo <octo> | |
Sun, 19 Feb 2006 09:37:28 +0000 (09:37 +0000) | ||
committer | octo <octo> | |
Sun, 19 Feb 2006 09:37:28 +0000 (09:37 +0000) |
src/battery.c | patch | blob | history |
diff --git a/src/battery.c b/src/battery.c
index ab5a042465cca4c5c45d91cc48bac2755a4c90a9..d467ecc8614148181cd945941f45d616915a6f26 100644 (file)
--- a/src/battery.c
+++ b/src/battery.c
if ((strcmp (fields[0], "charging") == 0)
&& (strcmp (fields[1], "state:") == 0))
{
- if (strcmp (fields[2], "charging"))
+ if (strcmp (fields[2], "charging") == 0)
charging = 1;
else
charging = 0;