diff options
Diffstat (limited to '')
-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']; |