diff options
author | Michael Stapelberg <michael+x200@stapelberg.de> | 2009-04-09 19:16:49 +0200 |
---|---|---|
committer | Michael Stapelberg <michael+x200@stapelberg.de> | 2009-04-09 19:16:49 +0200 |
commit | df2fb018fba376bcc1477f662c3799024aaa1663 (patch) | |
tree | fbc8a99dbcd85c29142d5d89dc32fef62dded512 /wmiistatus.c | |
parent | 5fc9e2ffb247f1e95c57c5f4640837fe78aea24d (diff) |
*doh* logic error
Diffstat (limited to 'wmiistatus.c')
-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) { |