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/entropy.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/entropy.php') diff --git a/plugin/entropy.php b/plugin/entropy.php index 0433a4f..0170335 100644 --- a/plugin/entropy.php +++ b/plugin/entropy.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' => 'Entropy bits', ); $obj->colors = array( @@ -24,8 +24,8 @@ $obj->rrd_format = '%4.0lf'; 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