mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Merge pull request #1715 from laf/rrdoptions
Updated rrdtool_update() to use new array format
This commit is contained in:
@@ -73,13 +73,13 @@ if ($device['os_group'] == 'cisco') {
|
||||
}
|
||||
|
||||
// FIXME - use memcached to make sure these values don't go backwards?
|
||||
$rrdupdate = array(
|
||||
$b_in,
|
||||
$b_out,
|
||||
$p_in,
|
||||
$p_out,
|
||||
$fields = array(
|
||||
'IN' => $b_in,
|
||||
'OUT' => $b_out,
|
||||
'PIN' => $p_in,
|
||||
'POUT' => $p_out,
|
||||
);
|
||||
rrdtool_update($rrdfile, $rrdupdate);
|
||||
rrdtool_update($rrdfile, $fields);
|
||||
|
||||
if ($acc['update']) {
|
||||
// Do Updates
|
||||
|
||||
Reference in New Issue
Block a user