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/libvirt.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'plugin/libvirt.php') diff --git a/plugin/libvirt.php b/plugin/libvirt.php index 0d7fff0..bcaeeb9 100644 --- a/plugin/libvirt.php +++ b/plugin/libvirt.php @@ -20,7 +20,7 @@ $obj = new Type_GenericIO($CONFIG, $_GET); switch($obj->args['type']) { case 'disk_octets': $obj->data_sources = array('read', 'write'); - $obj->ds_names = array( + $obj->legend = array( 'read' => 'Read', 'write' => 'Written', ); @@ -34,7 +34,7 @@ switch($obj->args['type']) { break; case 'disk_ops': $obj->data_sources = array('read', 'write'); - $obj->ds_names = array( + $obj->legend = array( 'read' => 'Read', 'write' => 'Written', ); @@ -48,7 +48,7 @@ switch($obj->args['type']) { break; case 'if_dropped': $obj->data_sources = array('rx', 'tx'); - $obj->ds_names = array( + $obj->legend = array( 'rx' => 'Receive', 'tx' => 'Transmit', ); @@ -61,7 +61,7 @@ switch($obj->args['type']) { break; case 'if_errors': $obj->data_sources = array('rx', 'tx'); - $obj->ds_names = array( + $obj->legend = array( 'rx' => 'Receive', 'tx' => 'Transmit', ); @@ -74,7 +74,7 @@ switch($obj->args['type']) { break; case 'if_octets': $obj->data_sources = array('rx', 'tx'); - $obj->ds_names = array( + $obj->legend = array( 'rx' => 'Receive', 'tx' => 'Transmit', ); @@ -88,7 +88,7 @@ switch($obj->args['type']) { break; case 'if_packets': $obj->data_sources = array('rx', 'tx'); - $obj->ds_names = array( + $obj->legend = array( 'rx' => 'Receive', 'tx' => 'Transmit', ); @@ -104,7 +104,7 @@ switch($obj->args['type']) { $obj = new Type_Default($CONFIG, $_GET); $obj->data_sources = array('value'); - $obj->ds_names = array( + $obj->legend = array( 'value' => 'CPU time', ); $obj->colors = array( @@ -118,7 +118,7 @@ switch($obj->args['type']) { $obj = new Type_Default($CONFIG, $_GET); $obj->data_sources = array('value'); - $obj->ds_names = array( + $obj->legend = array( 'value' => 'VCPU time', ); $obj->colors = array( @@ -134,8 +134,8 @@ $obj->rrd_format = '%5.1lf%s'; if ($CONFIG['version'] < 5 && count($obj->data_sources) == 1) { $obj->data_sources = array('ns'); - $obj->ds_names['ns'] = $obj->ds_names['value']; - unset($obj->ds_names['value']); + $obj->legend['ns'] = $obj->legend['value']; + unset($obj->legend['value']); $obj->colors['ns'] = $obj->colors['value']; unset($obj->colors['value']); -- cgit v1.1