aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/battery.php
diff options
context:
space:
mode:
authorPim van den Berg2014-05-03 18:15:12 +0200
committerPim van den Berg2014-05-03 19:21:36 +0200
commitedae75c21a8f657dd6cc9ace9e8e844ef337a951 (patch)
treeda0c2b4a1ef35a3d2d8c129925e257f6a6f7fbe3 /plugin/battery.php
parenttype/base: set default values for rrd_title and rrd_format (diff)
downloadapt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.zip
apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.gz
apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.bz2
apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.xz
rename ds_names and dsname to legend
This had nothing to do with an RRD data source.
Diffstat (limited to 'plugin/battery.php')
-rw-r--r--plugin/battery.php6
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);
18switch($obj->args['type']) { 18switch($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;