freesound: show correct duration for files exactly 99 hours long

This commit is contained in:
Colin Fletcher 2022-05-16 18:10:34 +01:00
parent ff14591719
commit ffa36cf6f4
1 changed files with 1 additions and 1 deletions

View File

@ -1298,7 +1298,7 @@ SoundFileBrowser::handle_freesound_results(std::string theString) {
double duration_seconds = atof(dur);
double h, m, s;
char duration_hhmmss[16];
if (duration_seconds >= 99 * 60 * 60) {
if (duration_seconds > 99 * 60 * 60) {
strcpy(duration_hhmmss, ">99h");
} else {
s = modf(duration_seconds/60, &m) * 60;