mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update helpers file. Closes #1538
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user