xbattmon

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

commit 742d9871964bfc1ca5f40633174d20cf8cee0bb9
parent c198aa937c7a247a2dfe117a6d73fc92002b07eb
Author: sin <sin@2f30.org>
Date:   Tue,  5 May 2015 18:24:20 +0100

Bump sysfs retries to 3 seconds

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

diff --git a/xbattmon.c b/xbattmon.c @@ -220,7 +220,7 @@ pollbat(void) FILE *fp; int acon, retry; - retry = 2; + retry = 3; fail1: fp = fopen(PATH_BAT_CAP, "r"); if (fp == NULL) { @@ -236,7 +236,7 @@ fail1: if (batcap > maxcap) batcap = maxcap; - retry = 2; + retry = 3; fail2: fp = fopen(PATH_AC_ONLINE, "r"); if (fp == NULL) {