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/netlink.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugin/netlink.php') diff --git a/plugin/netlink.php b/plugin/netlink.php index 28a25f1..9ddaee8 100644 --- a/plugin/netlink.php +++ b/plugin/netlink.php @@ -12,14 +12,14 @@ $obj->rrd_format = '%5.1lf%s'; switch($obj->args['type']) { case 'if_collisions': $obj->data_sources = array('value'); - $obj->ds_names = array('value' => 'Collisions'); + $obj->legend = array('value' => 'Collisions'); $obj->colors = array('value' => '0000ff'); $obj->rrd_title = sprintf('Collisions (%s)', $obj->args['pinstance']); $obj->rrd_vertical = 'Collisions/s'; break; case 'if_dropped': $obj->data_sources = array('rx', 'tx'); - $obj->ds_names = array( + $obj->legend = array( 'rx' => 'Receive', 'tx' => 'Transmit', ); @@ -32,7 +32,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', ); @@ -45,14 +45,14 @@ switch($obj->args['type']) { break; case 'if_multicast': $obj->data_sources = array('value'); - $obj->ds_names = array('value' => 'Packets'); + $obj->legend = array('value' => 'Packets'); $obj->colors = array('value' => '0000ff'); $obj->rrd_title = sprintf('Multicast Packets (%s)', $obj->args['pinstance']); $obj->rrd_vertical = 'Packets/s'; break; case 'if_octets': $obj->data_sources = array('rx', 'tx'); - $obj->ds_names = array( + $obj->legend = array( 'rx' => 'Receive', 'tx' => 'Transmit', ); @@ -66,7 +66,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', ); @@ -79,7 +79,7 @@ switch($obj->args['type']) { break; case 'if_rx_errors': $obj->data_sources = array('value'); - $obj->ds_names = array( + $obj->legend = array( 'crc' => 'CRC', 'fifo' => 'FiFo', 'frame' => 'Frame', @@ -100,7 +100,7 @@ switch($obj->args['type']) { break; case 'if_tx_errors': $obj->data_sources = array('value'); - $obj->ds_names = array( + $obj->legend = array( 'aborted' => 'Aborted', 'carrier' => 'Carrier', 'fifo' => 'FiFo', -- cgit v1.1