diff options
-rw-r--r-- | components.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components.c b/components.c index f00619b..fbe6d32 100644 --- a/components.c +++ b/components.c @@ -151,7 +151,8 @@ char *battery(char *store, size_t size, int flag) fread(cap, 1, 4, capacity); fclose(capacity); int percent = atoi(cap); - + if (percent != 100) + percent++; if ( !has_low_batt && percent < LOWBATT) { run(LOWBATTERY); |