From: Pasi Kallinen Date: Sat, 29 Jan 2011 19:23:48 +0000 (+0000) Subject: Don't show idle times less than 5s. X-Git-Tag: v1.6.1-roc-dev~128 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=a070ebdbf2d46c55a7f7fae1e817cff525d97d35;p=dgamelaunch Don't show idle times less than 5s. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@582 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/dgamelaunch.c b/dgamelaunch.c index 24f8414..d2ff8d0 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -801,8 +801,12 @@ inprogressmenu (int gameid) secs -= (mins*60); if (hours) snprintf(idletime, 10, "%ldh %ldm", hours, mins); - else + else if (mins) snprintf(idletime, 10, "%ldm %lds", mins, secs); + else if (secs > 4) + snprintf(idletime, 10, "%lds", secs); + else + snprintf(idletime, 10, " "); } for (di = 0; di < ARRAY_SIZE(watchcols); di++) {