diff options
-rw-r--r-- | wmiistatus.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |