From: Michael Stapelberg Date: Thu, 9 Apr 2009 17:16:49 +0000 (+0200) Subject: *doh* logic error X-Git-Tag: 1.0~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df2fb018fba376bcc1477f662c3799024aaa1663;p=i3%2Fi3status *doh* logic error --- diff --git a/wmiistatus.c b/wmiistatus.c index e1b8097..8408dcc 100644 --- a/wmiistatus.c +++ b/wmiistatus.c @@ -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) {