Cap time.

This commit is contained in:
Steve 2018-03-19 22:50:56 +00:00
parent 64c0a2bb74
commit cdf34e1c97
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ char *timeToString(int seconds, int showHours)
{
int hours, minutes;
/* max out at 99h 59m 59s */
seconds = MIN(seconds, (100 * 60 * 60) - 1);
hours = seconds / (FPS * FPS);
minutes = (seconds / FPS) % FPS;
seconds %= FPS;