diff options
Diffstat (limited to 'plugin/battery.php')
-rw-r--r-- | plugin/battery.php | 6 |
1 files changed, 3 insertions, 3 deletions
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( | |||
17 | ); | 17 | ); |
18 | switch($obj->args['type']) { | 18 | switch($obj->args['type']) { |
19 | case 'charge': | 19 | case 'charge': |
20 | $obj->ds_names = array('value' => 'Charge'); | 20 | $obj->legend = array('value' => 'Charge'); |
21 | $obj->rrd_title = sprintf('Charge (Battery %s)', $obj->args['pinstance']); | 21 | $obj->rrd_title = sprintf('Charge (Battery %s)', $obj->args['pinstance']); |
22 | $obj->rrd_vertical = 'Ampere hours'; | 22 | $obj->rrd_vertical = 'Ampere hours'; |
23 | break; | 23 | break; |
24 | case 'current': | 24 | case 'current': |
25 | $obj->ds_names = array('value' => 'Current'); | 25 | $obj->legend = array('value' => 'Current'); |
26 | $obj->rrd_title = sprintf('Current (Battery %s)', $obj->args['pinstance']); | 26 | $obj->rrd_title = sprintf('Current (Battery %s)', $obj->args['pinstance']); |
27 | $obj->rrd_vertical = 'Ampere'; | 27 | $obj->rrd_vertical = 'Ampere'; |
28 | break; | 28 | break; |
29 | case 'voltage': | 29 | case 'voltage': |
30 | $obj->ds_names = array('value' => 'Voltage'); | 30 | $obj->legend = array('value' => 'Voltage'); |
31 | $obj->rrd_title = sprintf('Voltage (Battery %s)', $obj->args['pinstance']); | 31 | $obj->rrd_title = sprintf('Voltage (Battery %s)', $obj->args['pinstance']); |
32 | $obj->rrd_vertical = 'Volt'; | 32 | $obj->rrd_vertical = 'Volt'; |
33 | break; | 33 | break; |