summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wmiistatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wmiistatus.c b/wmiistatus.c
index e1f1e68..cba4d8b 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) && (present_rate != -1)) {
+ if ((full_design != -1) && (remaining != -1) && (present_rate > 0)) {
float remaining_time;
int seconds, hours, minutes;
if (status == CS_CHARGING)