mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
554e22d927
commit
d7bcd92612
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user