]> git.sur5r.net Git - i3/i3status/commitdiff
*doh* logic error
authorMichael Stapelberg <michael+x200@stapelberg.de>
Thu, 9 Apr 2009 17:16:49 +0000 (19:16 +0200)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Thu, 9 Apr 2009 17:16:49 +0000 (19:16 +0200)
wmiistatus.c

index e1b8097836529fb7f1d959b356c900f780490fd0..8408dccedf92750014bbe5dd640bc69d1048dc4c 100644 (file)
@@ -307,7 +307,7 @@ static char *get_battery_info() {
                        last = walk+1;
        (void)close(fd);
 
-       if ((full_design != 1) && (remaining != -1))
+       if ((full_design == 1) || (remaining == -1))
                return part;
 
        if (present_rate > 0) {