commit 7afdf3097e1d7d71c14062153e7d9e33f1d54431
parent fce6a66354f0ac5fa2c54374a0a927f792e107fa
Author: Theo Le Ninivin <theo.leninivin@kaufda.de>
Date: Thu, 31 Dec 2015 12:48:48 +0100
Correct the printf type, reflect the prev. change
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dwm.suckless.org/dwmstatus/profil-dwmstatus-1.0.c b/dwm.suckless.org/dwmstatus/profil-dwmstatus-1.0.c
@@ -114,7 +114,7 @@ int main(void) {
cpu1 = getfreq("/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq");
datetime = getdatetime();
bat0 = getbattery();
- snprintf(status, 200, "%0.2f, %0.2f | %d%% | %s", cpu0, cpu1, bat0, datetime);
+ snprintf(status, 200, "%0.2f, %0.2f | %.2lf%% | %s", cpu0, cpu1, bat0, datetime);
free(datetime);
setstatus(status);