diff options
| author | Pim van den Berg | 2014-05-03 18:15:12 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2014-05-03 19:21:36 +0200 |
| commit | edae75c21a8f657dd6cc9ace9e8e844ef337a951 (patch) | |
| tree | da0c2b4a1ef35a3d2d8c129925e257f6a6f7fbe3 /plugin/entropy.php | |
| parent | type/base: set default values for rrd_title and rrd_format (diff) | |
| download | apt-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/entropy.php')
| -rw-r--r-- | plugin/entropy.php | 6 |
1 files changed, 3 insertions, 3 deletions
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'; | |||
| 10 | 10 | ||
| 11 | $obj = new Type_Default($CONFIG, $_GET); | 11 | $obj = new Type_Default($CONFIG, $_GET); |
| 12 | $obj->data_sources = array('value'); | 12 | $obj->data_sources = array('value'); |
| 13 | $obj->ds_names = array( | 13 | $obj->legend = array( |
| 14 | 'value' => 'Entropy bits', | 14 | 'value' => 'Entropy bits', |
| 15 | ); | 15 | ); |
| 16 | $obj->colors = array( | 16 | $obj->colors = array( |
| @@ -24,8 +24,8 @@ $obj->rrd_format = '%4.0lf'; | |||
| 24 | if ($CONFIG['version'] < 5) { | 24 | if ($CONFIG['version'] < 5) { |
| 25 | $obj->data_sources = array('entropy'); | 25 | $obj->data_sources = array('entropy'); |
| 26 | 26 | ||
| 27 | $obj->ds_names['entropy'] = $obj->ds_names['value']; | 27 | $obj->legend['entropy'] = $obj->legend['value']; |
| 28 | unset($obj->ds_names['value']); | 28 | unset($obj->legend['value']); |
| 29 | 29 | ||
| 30 | $obj->colors['entropy'] = $obj->colors['value']; | 30 | $obj->colors['entropy'] = $obj->colors['value']; |
| 31 | unset($obj->colors['value']); | 31 | unset($obj->colors['value']); |
