diff options
author | Simon Rettberg | 2017-01-19 13:09:15 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-01-19 13:09:15 +0100 |
commit | c76f3fd2ad3711327c4b9bc844ae927cb86416a0 (patch) | |
tree | f82319d3511790a5aad8ed9508b4c6216f8d5d48 /modules-available/statistics_reporting/inc/getdata.inc.php | |
parent | [statistics_reporting] Delete unused api.inc.php (diff) | |
download | slx-admin-c76f3fd2ad3711327c4b9bc844ae927cb86416a0.tar.gz slx-admin-c76f3fd2ad3711327c4b9bc844ae927cb86416a0.tar.xz slx-admin-c76f3fd2ad3711327c4b9bc844ae927cb86416a0.zip |
[statistics_reporting] intdiv() is PHP7 only
Diffstat (limited to 'modules-available/statistics_reporting/inc/getdata.inc.php')
-rw-r--r-- | modules-available/statistics_reporting/inc/getdata.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics_reporting/inc/getdata.inc.php b/modules-available/statistics_reporting/inc/getdata.inc.php index 07a13a0c..b0a3171f 100644 --- a/modules-available/statistics_reporting/inc/getdata.inc.php +++ b/modules-available/statistics_reporting/inc/getdata.inc.php @@ -99,7 +99,7 @@ class GetData // Format $seconds into ".d .h .m .s" format (day, hour, minute, second) private static function formatSeconds($seconds) { - return intdiv($seconds, 3600*24).'d '.intdiv($seconds%(3600*24), 3600).'h '.intdiv($seconds%3600, 60).'m '.($seconds%60).'s'; + return sprintf('%dd, %02d:%02d:%02d', $seconds / (3600*24), ($seconds % (3600*24)) / 3600, ($seconds%3600) / 60, $seconds%60); } // Calculate Median |