status

statusbar program for dwm
git clone anongit@rnpnr.xyz:status.git
Log | Files | Refs | Feed | README | LICENSE

Commit: a493e43360432a7a8b0f4095ffff96f7eeff7e02
Parent: 4de785f8112a0e51c473d11acebe42df1ab43be9
Author: Randy Palamar
Date:   Tue, 28 Jun 2022 20:44:44 -0600

linux/battery.c: shut up warning

Diffstat:
Mblocks/linux/battery.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blocks/linux/battery.c b/blocks/linux/battery.c @@ -38,7 +38,7 @@ batinfo(struct Block *b) h = timeleft; m = (timeleft - (double)h) * 60; - snprintf(buf, sizeof(buf), "%d%% (%d:%02d)", perc, h, m); + snprintf(buf, sizeof(buf), "%d%% (%lu:%02lu)", perc, h, m); } else snprintf(buf, sizeof(buf), "%d%% (%s)", perc, state);