Project

General

Profile

« Previous | Next » 

Revision 005097dd

Added by Stilez y about 9 years ago

missing "("
(cherry picked from commit 70381d4803b9424c1a3f3ef518d8243062452d77)

View differences:

src/etc/inc/pfsense-utils.inc
1151 1151
	}
1152 1152
	// FIXME: When we move to PHP 7 we can use "intdiv($sec % X, Y)" etc
1153 1153
	list($d, $h, $m, $s) = array(	(int)($showhoursonly ? 0 : $sec/86400),
1154
					(int)($showhoursonly ? $sec : $sec % 86400)/3600),
1154
					(int)(($showhoursonly ? $sec : $sec % 86400)/3600),
1155 1155
					(int)(($sec % 3600)/60),
1156 1156
					$sec % 60
1157 1157
				);

Also available in: Unified diff