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/tail.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/tail.php')
-rw-r--r-- | plugin/tail.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/tail.php b/plugin/tail.php index 91400c7..5698558 100644 --- a/plugin/tail.php +++ b/plugin/tail.php | |||
@@ -15,9 +15,9 @@ $obj->rrd_format = '%5.1lf%s'; | |||
15 | if ($CONFIG['version'] < 5) { | 15 | if ($CONFIG['version'] < 5) { |
16 | if (strcmp($obj->args['type'], 'gauge') != 0) { | 16 | if (strcmp($obj->args['type'], 'gauge') != 0) { |
17 | $obj->data_sources = array('count'); | 17 | $obj->data_sources = array('count'); |
18 | if (count($obj->ds_names) == 1) { | 18 | if (count($obj->legend) == 1) { |
19 | $obj->ds_names['count'] = $obj->ds_names['value']; | 19 | $obj->legend['count'] = $obj->legend['value']; |
20 | unset($obj->ds_names['value']); | 20 | unset($obj->legend['value']); |
21 | } | 21 | } |
22 | if (count($obj->colors) == 1) { | 22 | if (count($obj->colors) == 1) { |
23 | $obj->colors['count'] = $obj->colors['value']; | 23 | $obj->colors['count'] = $obj->colors['value']; |