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 {