tbatt.c: add missing space during discharge - 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 1ebbb21978d5d563a5d3268bbc012d4d359d8e1c
DIR parent 4619eab788eeec77c9eae7d7b5abf248f724c3de
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 19 Jan 2021 14:34:17 +0100
batt.c: add missing space during discharge
Diffstat:
M batt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/batt.c b/batt.c
t@@ -17,7 +17,7 @@ battprint(char *buf, size_t len, int acon, int life, int remain)
c = acon ? '=' : ' ';
if (c == ' ' && remain != 0)
- snprintf(buf, len, "%d%% %d:%02d |", life, remain/60, remain%60);
+ snprintf(buf, len, " %d%% %d:%02d |", life, remain/60, remain%60);
else
snprintf(buf, len, " %d%% |", life);