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/vserver.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugin/vserver.php') diff --git a/plugin/vserver.php b/plugin/vserver.php index 27e739f..80fad3e 100644 --- a/plugin/vserver.php +++ b/plugin/vserver.php @@ -34,7 +34,7 @@ switch($obj->args['type']) { $obj = new Type_GenericStacked($CONFIG, $_GET); $obj->order = array('vm', 'vml', 'rss', 'anon'); # http://oldwiki.linux-vserver.org/Memory+Allocation - $obj->ds_names = array( + $obj->legend = array( 'vm' => "Virtual memory pages", 'vml' => "Pages locked into memory", 'rss' => "Resident set size", @@ -57,7 +57,7 @@ switch($obj->args['type']) { $obj = new Type_GenericStacked($CONFIG, $_GET); $obj->order = array('running', 'uninterruptable', 'onhold', 'total'); # http://linux-vserver.org/ProcFS - $obj->ds_names = array( + $obj->legend = array( 'onhold' => "Number of threads on hold", 'running' => "Number of running threads", 'total' => "Total number of threads", @@ -78,7 +78,7 @@ switch($obj->args['type']) { break; case 'if_octets': $obj->data_sources = array('rx', 'tx'); - $obj->ds_names = array( + $obj->legend = array( 'inet-rx' => 'IPv4 Receive', 'inet-tx' => 'IPv4 Transmit', 'inet6-rx' => 'IPv6 Receive', @@ -105,7 +105,7 @@ switch($obj->args['type']) { break; case 'vs_processes': $obj->data_sources = array('value'); - $obj->ds_names = array( + $obj->legend = array( 'value' => 'Processes', ); $obj->rrd_title = sprintf('Processes on Vserver %s', $obj->args['pinstance']); -- cgit v1.1