From: octo Date: Sun, 19 Feb 2006 09:37:28 +0000 (+0000) Subject: Missed one `strcmp' X-Git-Tag: collectd-3.8.0~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=135d254a0339e2f01274f0b4ee63a7ebf635c861;p=collectd.git Missed one `strcmp' --- diff --git a/src/battery.c b/src/battery.c index ab5a0424..d467ecc8 100644 --- 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;