summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorstilez <stilez@users.noreply.github.com>2016-05-31 07:42:41 +0100
committerStephen Beaver <sbeaver@netgate.com>2016-06-22 11:23:07 -0400
commit005097ddb678189fd7503ea8690bc299301eab45 (patch)
tree7ff4d55cff7e70bb2aeee9fc40c10daf8cf59eee /src
parentfedbe5af8e6c19bdbf1e2c151c03579ed2a253fa (diff)
downloadpfsense-005097ddb678189fd7503ea8690bc299301eab45.zip
pfsense-005097ddb678189fd7503ea8690bc299301eab45.tar.gz
missing "("
(cherry picked from commit 70381d4803b9424c1a3f3ef518d8243062452d77)
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/pfsense-utils.inc2
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
);
OpenPOWER on IntegriCloud