Update helpers file. Closes #1538

This commit is contained in:
DariusIII
2024-03-28 20:45:36 +01:00
parent 12a11788e8
commit 72c1a7a5b4
+4 -4
View File
@@ -244,11 +244,11 @@ if (! function_exists('realDuration')) {
* @return string
*/
function realDuration($milliseconds)
{
$time = round($milliseconds / 1000);
{
$time = round($milliseconds / 1000);
return sprintf('%02dh:%02dm:%02ds', $time / 3600, $time / 60 % 60, $time % 60);
}
return sprintf('%02dh:%02dm:%02ds', floor($time / 3600), floor($time / 60 % 60), $time % 60);
}
}
if (! function_exists('is_it_json')) {