aboutsummaryrefslogtreecommitdiff
path: root/lowbat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lowbat.c')
-rw-r--r--lowbat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lowbat.c b/lowbat.c
index f3855bc..50651a7 100644
--- a/lowbat.c
+++ b/lowbat.c
@@ -148,7 +148,7 @@ int main() {
w_lowbat_crit = w_lowbat = 0; // clear conditions
}
- printf("\r%d%%", capacity);
+ printf("\r%s %d%%", discharging ? "Discharging" : "Charging", capacity);
fflush(stdout);
sleep(PERIOD);
}