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/nginx.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/nginx.php') diff --git a/plugin/nginx.php b/plugin/nginx.php index 7d70190..cbb0fa4 100644 --- a/plugin/nginx.php +++ b/plugin/nginx.php @@ -21,7 +21,7 @@ switch($obj->args['type']) { case 'connections': $obj->order = array('accepted', 'handled'); - $obj->ds_names = array( + $obj->legend = array( 'accepted' => 'Accepted', 'handled' => 'Handled', ); @@ -34,7 +34,7 @@ switch($obj->args['type']) break; case 'nginx_connections': $obj->order = array('active', 'reading', 'waiting', 'writing'); - $obj->ds_names = array( + $obj->legend = array( 'active' => 'Active', 'reading' => 'Reading', 'waiting' => 'Waiting', @@ -50,7 +50,7 @@ switch($obj->args['type']) $obj->rrd_vertical = 'Connections/s'; break; case 'nginx_requests': - $obj->ds_names = array( + $obj->legend = array( 'value' => 'Requests', ); $obj->colors = array( -- cgit v1.1