diff options
-rw-r--r-- | src/etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index 6d3f282..e00eebb 100644 --- a/src/etc/inc/pfsense-utils.inc +++ b/src/etc/inc/pfsense-utils.inc @@ -1151,7 +1151,7 @@ function convert_seconds_to_dhms($sec, $showhoursonly = false) { } // FIXME: When we move to PHP 7 we can use "intdiv($sec % X, Y)" etc list($d, $h, $m, $s) = array( (int)($showhoursonly ? 0 : $sec/86400), - (int)($showhoursonly ? $sec : $sec % 86400)/3600), + (int)(($showhoursonly ? $sec : $sec % 86400)/3600), (int)(($sec % 3600)/60), $sec % 60 ); |