commit f06e0d2419d990fd662fb709ba5b57d152f7c6ce
parent a04f9e13e4c07bb0054867dc5f72525ac3a59e0f
Author: sin <sin@2f30.org>
Date: Sun, 19 Apr 2015 14:08:53 +0100
Rename blinkon to blink
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/xbattmon.c b/xbattmon.c
@@ -46,7 +46,7 @@ unsigned int barheight;
int state; /* AC_ON or AC_OFF */
int batcap; /* 0 if completely discharged or `maxcap' if completely charged */
int timeout;
-int blinkon;
+int blink;
#include "config.h"
@@ -150,10 +150,10 @@ redraw(void)
if (state == AC_OFF && batcap <= critical) {
timeout = 500;
- blinkon = !blinkon;
+ blink = !blink;
} else {
timeout = 5000;
- blinkon = 0;
+ blink = 0;
}
if (placement == BOTTOM || placement == TOP)
@@ -165,7 +165,7 @@ redraw(void)
done = cmap[COLOR_BAT_CHARGED];
left = cmap[COLOR_BAT_LEFT2CHARGE];
} else {
- done = cmap[blinkon == 0 ? COLOR_BAT_LEFT2DRAIN : COLOR_BAT_DRAINED];
+ done = cmap[blink == 0 ? COLOR_BAT_LEFT2DRAIN : COLOR_BAT_DRAINED];
left = cmap[COLOR_BAT_DRAINED];
}