sites

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

commit f15bdda87051daecd47ac4099aa2a4da31301794
parent 3dde5a0be4ba118a1112a2e69a4c27e9b6742ee3
Author: Thuban <thuban@singularity.fr>
Date:   Thu, 20 Jun 2013 14:21:28 +0200

two numbers for min/sec is better

Diffstat:
Mdwm.suckless.org/dwmstatus/mpdstatus.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dwm.suckless.org/dwmstatus/mpdstatus.c b/dwm.suckless.org/dwmstatus/mpdstatus.c @@ -41,7 +41,7 @@ getmpdstat() { elapsed = mpd_status_get_elapsed_time(theStatus); total = mpd_status_get_total_time(theStatus); mpd_song_free(song); - retstr = smprintf("%d:%d/%d:%d %s - %s", + retstr = smprintf("%.2d:%.2d/%.2d:%.2d %s - %s", elapsed/60, elapsed%60, total/60, total%60, artist, title);