[wiki] [sites] Correcting my stupidity || Thuban

From: <git_AT_suckless.org>
Date: Sat, 27 Apr 2013 06:53:16 +0200

commit 82773b5ccf43e53411b32bb29ab404a24fd00140
Author: Thuban <thuban_AT_singularity.fr>
Date: Sat Apr 27 06:53:12 2013 +0200

    Correcting my stupidity

diff --git a/dwm.suckless.org/dwmstatus/uptime.c b/dwm.suckless.org/dwmstatus/uptime.c
index a66c1c4..79ffa54 100644
--- a/dwm.suckless.org/dwmstatus/uptime.c
+++ b/dwm.suckless.org/dwmstatus/uptime.c
_AT_@ -93,8 +93,8 @@ up() {
     int h,m = 0;
     sysinfo(&info);
     h = info.uptime/3600;
- m = info.uptime/60;
- return smprintf("%dh %dm",h,m);
+ m = (info.uptime - h*3600 )/60;
+ return smprintf("%dh%dm",h,m);
 }
 
 
Received on Sat Apr 27 2013 - 06:53:16 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 27 2013 - 07:00:23 CEST