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/filecount.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/filecount.php') diff --git a/plugin/filecount.php b/plugin/filecount.php index 5fa524d..ead8df8 100644 --- a/plugin/filecount.php +++ b/plugin/filecount.php @@ -17,13 +17,13 @@ $obj->data_sources = array('value'); switch($obj->args['type']) { case 'bytes': - $obj->ds_names = array('value' => 'Size'); + $obj->legend = array('value' => 'Size'); $obj->colors = array('value' => '0000ff'); $obj->rrd_title = sprintf('Filecount: size (%s)', $obj->args['pinstance']); $obj->rrd_vertical = 'Bytes'; break; case 'files': - $obj->ds_names = array('value' => 'Files'); + $obj->legend = array('value' => 'Files'); $obj->colors = array('value' => 'f0a000'); $obj->rrd_title = sprintf('Filecount: number of files (%s)', $obj->args['pinstance']); $obj->rrd_vertical = 'Files'; -- cgit v1.1