Merge pull request #1715 from laf/rrdoptions

Updated rrdtool_update() to use new array format
This commit is contained in:
Daniel Preussker
2015-09-22 12:15:59 +00:00
65 changed files with 592 additions and 271 deletions

View File

@@ -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