From df2fb018fba376bcc1477f662c3799024aaa1663 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 9 Apr 2009 19:16:49 +0200 Subject: [PATCH] *doh* logic error --- wmiistatus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5