Introduction
Introduction Statistics Contact Development Disclaimer Help
tbatt.c: hide status when battery is absent - spoon - [fork] customized build o…
git clone git://src.adamsgaard.dk/spoon
Log
Files
Refs
LICENSE
---
commit 427131eb1a991075c267188bddf570ea742df500
parent 5b2da9712846e6b4b59992ca636ce0e612c76924
Author: Anders Damsgaard <[email protected]>
Date: Wed, 6 Jan 2021 19:00:15 +0100
batt.c: hide status when battery is absent
Diffstat:
M batt.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/batt.c b/batt.c
t@@ -50,9 +50,7 @@ battread(void *arg, char *buf, size_t len)
}
close(fd);
- if (info.battery_state == APM_BATTERY_ABSENT)
- snprintf(buf, len, "[no batt]");
- else
+ if (info.battery_state != APM_BATTERY_ABSENT)
battprint(buf, len, info.ac_state == APM_AC_ON,
info.battery_life, info.minutes_left);
return 0;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.