Realtime graph handle snmp server caching (#10113)

* Realtime graph handle server caching
Handle server caching more gracefully than setting the throughput to 0 Mbps

* smoother estimated interval

* don't change the graphing timescale
This commit is contained in:
Tony Murray
2019-05-01 17:02:15 -05:00
committed by Neil Lathwood
parent 554e22d927
commit d7bcd92612
2 changed files with 52 additions and 26 deletions

View File

@@ -30,7 +30,7 @@ if (is_numeric($_GET['id']) && ($config['allow_unauth_graphs'] || port_permitted
$out = snmp_get($device, 'ifOutOctets.'.$port['ifIndex'], '-OUqnv', 'IF-MIB');
}
$time = time();
$time = microtime(true);
printf("%lf|%s|%s\n", time(), $in, $out);
printf("%lf|%s|%s\n", $time, $in, $out);
}