tbatt.c: fix battery print on openbsd - spoon - [fork] customized build of spoon, the dwm status utility
HTML git clone git://src.adamsgaard.dk/spoon
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 512c6a3aef75bd59fc183193af04c8727b19c99c
DIR parent 3e718a5701ff8f984b516249188915b19a5bd814
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 22 Jul 2025 15:44:45 +0200
batt.c: fix battery print on openbsd
Diffstat:
M batt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/batt.c b/batt.c
t@@ -55,7 +55,7 @@ battread(void *arg, char *buf, size_t len)
snprintf(buf, len, "");
else
battprint(buf, len, info.ac_state == APM_AC_ON,
- info.battery_life, info.minutes_left);
+ info.battery_life, info.minutes_left, 0);
return 0;
}
#elif __linux__