Updated rrdtool_update() to use new array format

This commit is contained in:
laf
2015-08-18 16:26:55 +00:00
parent 84a0b8f676
commit 987634e463
65 changed files with 591 additions and 271 deletions

View File

@@ -74,7 +74,11 @@ if (is_numeric($uptime)) {
rrdtool_create($uptime_rrd, 'DS:uptime:GAUGE:600:0:U '.$config['rrd_rra']);
}
rrdtool_update($uptime_rrd, 'N:'.$uptime);
$fields = array(
'uptime' => $uptime,
);
rrdtool_update($uptime_rrd, $fields);
$graphs['uptime'] = true;