projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635f3a0
)
Missed one `strcmp'
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
ab5a042
..
d467ecc
100644
(file)
--- a/
src/battery.c
+++ b/
src/battery.c
@@
-300,7
+300,7
@@
static void battery_read (void)
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;