Misc. tidy up.

This commit is contained in:
Steve 2016-06-26 15:40:49 +01:00
parent 03d8b2b471
commit 9daf523d73
1 changed files with 3 additions and 3 deletions

View File

@ -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
{