[wiki] [sites] two numbers for min/sec is better || Thuban

From: <git_AT_suckless.org>
Date: Thu, 20 Jun 2013 14:21:31 +0200

commit f15bdda87051daecd47ac4099aa2a4da31301794
Author: Thuban <thuban_AT_singularity.fr>
Date: Thu Jun 20 14:21:28 2013 +0200

    two numbers for min/sec is better

diff --git a/dwm.suckless.org/dwmstatus/mpdstatus.c b/dwm.suckless.org/dwmstatus/mpdstatus.c
index eaaa98c..8132680 100644
--- a/dwm.suckless.org/dwmstatus/mpdstatus.c
+++ b/dwm.suckless.org/dwmstatus/mpdstatus.c
_AT_@ -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);
Received on Thu Jun 20 2013 - 14:21:31 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 20 2013 - 14:24:13 CEST