sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 82773b5ccf43e53411b32bb29ab404a24fd00140
parent 5399e7419d058d46782d209071d0aea321df200e
Author: Thuban <thuban@singularity.fr>
Date:   Sat, 27 Apr 2013 06:53:12 +0200

Correcting my stupidity

Diffstat:
Mdwm.suckless.org/dwmstatus/uptime.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dwm.suckless.org/dwmstatus/uptime.c b/dwm.suckless.org/dwmstatus/uptime.c @@ -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); }