mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
reporting: fix the time handling, not sure why this now never worked #1756
Maybe a browser change... Bad Chrome?
This commit is contained in:
parent
7d2a60a26b
commit
930f7974e6
@ -30,8 +30,7 @@ function traffic_api()
|
||||
global $config;
|
||||
$result = array();
|
||||
$result['interfaces'] = legacy_interface_stats();
|
||||
$temp = gettimeofday();
|
||||
$result['time'] = (double)$temp["sec"] + (double)$temp["usec"] / 1000000.0;
|
||||
$result['time'] = time();
|
||||
// collect user friendly interface names
|
||||
foreach (legacy_config_get_interfaces(array("virtual" => false)) as $interfaceKey => $interfaceData) {
|
||||
if (array_key_exists($interfaceData['if'], $result['interfaces'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user