mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated rrdtool_update() to use new array format
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user