xbattmon

simple battery monitor for X
git clone git://git.2f30.org/xbattmon
Log | Files | Refs | README | LICENSE

commit b8fc48f8a9db0b0e8d4c3af65cd11224bcdc4869
parent 8920fa33f05bc5dc8dd4aa7efcc472f1c1598dc1
Author: sin <sin@2f30.org>
Date:   Fri, 31 Oct 2014 00:40:29 +0000

Use maxcap instead of a hardcoded 100%

Diffstat:
Mxbattmon.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xbattmon.c b/xbattmon.c @@ -157,8 +157,8 @@ update(void) close(fd); howmuch = info.battery_life; - if (howmuch > 100) - howmuch = 100; + if (howmuch > maxcap) + howmuch = maxcap; if (info.ac_state == APM_AC_ON) state = BATT_CHARGING;