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/openvpn.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/openvpn.php') 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')) { require_once 'type/GenericIO.class.php'; $obj = new Type_GenericIO($CONFIG, $_GET); $obj->data_sources = array('rx', 'tx'); - $obj->ds_names = array( + $obj->legend = array( 'rx' => 'Receive', 'tx' => 'Transmit', ); @@ -30,7 +30,7 @@ switch(GET('t')) { case 'users': require_once 'type/Default.class.php'; $obj = new Type_Default($CONFIG, $_GET); - $obj->ds_names = array( + $obj->legend = array( 'value' => 'Users', ); $obj->rrd_title = sprintf('Users (%s)', $obj->args['pinstance']); -- cgit v1.1