This commit is contained in:
Jan Weiß 2021-05-06 14:13:53 +02:00
parent 642717e405
commit e28b4dbd5c

View file

@ -40,7 +40,7 @@
if (isinf(timeInterval)) { return @"Inf"; }
BOOL isNegative = signbit(timeInterval);
int totalSeconds = (int)(isNegative ? -timeInterval : timeInterval);
int seconds = totalSeconds % 60;