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/tail.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/tail.php') 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'; if ($CONFIG['version'] < 5) { if (strcmp($obj->args['type'], 'gauge') != 0) { $obj->data_sources = array('count'); - if (count($obj->ds_names) == 1) { - $obj->ds_names['count'] = $obj->ds_names['value']; - unset($obj->ds_names['value']); + if (count($obj->legend) == 1) { + $obj->legend['count'] = $obj->legend['value']; + unset($obj->legend['value']); } if (count($obj->colors) == 1) { $obj->colors['count'] = $obj->colors['value']; -- cgit v1.1