From: Kalle Wallin Date: Thu, 9 Dec 2004 15:38:22 +0000 (+0000) Subject: %time% format fix from Aurelien Foret (use %02d for seconds) X-Git-Tag: v0.12_alpha1~452 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7bbad86af8ab86f51d45c403326ef14febb7bba2;p=ncmpc.git %time% format fix from Aurelien Foret (use %02d for seconds) git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2786 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/src/strfsong.c b/src/strfsong.c index bac6d47..4c2bf38 100644 --- a/src/strfsong.c +++ b/src/strfsong.c @@ -184,7 +184,7 @@ _strfsong(gchar *s, else if (strncmp("%time%", p, n) == 0) { if (song->time != MPD_SONG_NO_TIME) - temp = g_strdup_printf("%d:%d", + temp = g_strdup_printf("%d:%02d", song->time / 60, song->time % 60 + 1); }