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/conntrack.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/conntrack.php') diff --git a/plugin/conntrack.php b/plugin/conntrack.php index 6e2bba0..efd562c 100644 --- a/plugin/conntrack.php +++ b/plugin/conntrack.php @@ -10,7 +10,7 @@ require_once 'type/Default.class.php'; $obj = new Type_Default($CONFIG, $_GET); $obj->data_sources = array('value'); -$obj->ds_names = array( +$obj->legend = array( 'value' => 'Conntrack entries', ); $obj->colors = array( @@ -25,8 +25,8 @@ $obj->rrd_format = '%.1lf'; if ($CONFIG['version'] < 5) { $obj->data_sources = array('entropy'); - $obj->ds_names['entropy'] = $obj->ds_names['value']; - unset($obj->ds_names['value']); + $obj->legend['entropy'] = $obj->legend['value']; + unset($obj->legend['value']); $obj->colors['entropy'] = $obj->colors['value']; unset($obj->colors['value']); -- cgit v1.1