From 9daf523d73046c5221727d611c13ee6aeafc01a6 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 26 Jun 2016 15:40:49 +0100 Subject: [PATCH] Misc. tidy up. --- src/system/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/util.c b/src/system/util.c index 948570e..a8e17b5 100644 --- a/src/system/util.c +++ b/src/system/util.c @@ -112,13 +112,13 @@ char *timeToString(long millis, int showHours) int hours, minutes, seconds; seconds = millis / FPS; - minutes = (seconds / 60) % 60; - hours = seconds / (60 * 60); + minutes = (seconds / FPS) % 60; + hours = seconds / (FPS * FPS); seconds %= 60; if (showHours) { - sprintf(TIME, "%dh:%02dm:%02ds", hours, minutes, seconds); + sprintf(TIME, "%dh %02dm %02ds", hours, minutes, seconds); } else {