aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/openvpn.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/openvpn.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 '')
-rw-r--r--plugin/openvpn.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/openvpn.php b/plugin/openvpn.php
index 1ff6dd1..6eba3d5 100644
--- a/plugin/openvpn.php
+++ b/plugin/openvpn.php
@@ -14,7 +14,7 @@ switch(GET('t')) {
14 require_once 'type/GenericIO.class.php'; 14 require_once 'type/GenericIO.class.php';
15 $obj = new Type_GenericIO($CONFIG, $_GET); 15 $obj = new Type_GenericIO($CONFIG, $_GET);
16 $obj->data_sources = array('rx', 'tx'); 16 $obj->data_sources = array('rx', 'tx');
17 $obj->ds_names = array( 17 $obj->legend = array(
18 'rx' => 'Receive', 18 'rx' => 'Receive',
19 'tx' => 'Transmit', 19 'tx' => 'Transmit',
20 ); 20 );
@@ -30,7 +30,7 @@ switch(GET('t')) {
30 case 'users': 30 case 'users':
31 require_once 'type/Default.class.php'; 31 require_once 'type/Default.class.php';
32 $obj = new Type_Default($CONFIG, $_GET); 32 $obj = new Type_Default($CONFIG, $_GET);
33 $obj->ds_names = array( 33 $obj->legend = array(
34 'value' => 'Users', 34 'value' => 'Users',
35 ); 35 );
36 $obj->rrd_title = sprintf('Users (%s)', $obj->args['pinstance']); 36 $obj->rrd_title = sprintf('Users (%s)', $obj->args['pinstance']);