From edae75c21a8f657dd6cc9ace9e8e844ef337a951 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 3 May 2014 18:15:12 +0200 Subject: rename ds_names and dsname to legend This had nothing to do with an RRD data source. --- plugin/battery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/battery.php') diff --git a/plugin/battery.php b/plugin/battery.php index 631776b..fc91955 100644 --- a/plugin/battery.php +++ b/plugin/battery.php @@ -17,17 +17,17 @@ $obj->colors = array( ); switch($obj->args['type']) { case 'charge': - $obj->ds_names = array('value' => 'Charge'); + $obj->legend = array('value' => 'Charge'); $obj->rrd_title = sprintf('Charge (Battery %s)', $obj->args['pinstance']); $obj->rrd_vertical = 'Ampere hours'; break; case 'current': - $obj->ds_names = array('value' => 'Current'); + $obj->legend = array('value' => 'Current'); $obj->rrd_title = sprintf('Current (Battery %s)', $obj->args['pinstance']); $obj->rrd_vertical = 'Ampere'; break; case 'voltage': - $obj->ds_names = array('value' => 'Voltage'); + $obj->legend = array('value' => 'Voltage'); $obj->rrd_title = sprintf('Voltage (Battery %s)', $obj->args['pinstance']); $obj->rrd_vertical = 'Volt'; break; -- cgit v1.1