From ffa36cf6f443726d074f850a6ab0ba528c6f1586 Mon Sep 17 00:00:00 2001 From: Colin Fletcher Date: Mon, 16 May 2022 18:10:34 +0100 Subject: [PATCH] freesound: show correct duration for files exactly 99 hours long --- gtk2_ardour/sfdb_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index f796f22122..caf8bec47c 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -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;