diff options
author | Pim van den Berg | 2014-05-03 18:15:12 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-05-03 19:21:36 +0200 |
commit | edae75c21a8f657dd6cc9ace9e8e844ef337a951 (patch) | |
tree | da0c2b4a1ef35a3d2d8c129925e257f6a6f7fbe3 /plugin/netlink.php | |
parent | type/base: set default values for rrd_title and rrd_format (diff) | |
download | apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.zip apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.gz apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.bz2 apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.xz |
rename ds_names and dsname to legend
This had nothing to do with an RRD data source.
Diffstat (limited to 'plugin/netlink.php')
-rw-r--r-- | plugin/netlink.php | 16 |
1 files changed, 8 insertions, 8 deletions
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'; | |||
12 | switch($obj->args['type']) { | 12 | switch($obj->args['type']) { |
13 | case 'if_collisions': | 13 | case 'if_collisions': |
14 | $obj->data_sources = array('value'); | 14 | $obj->data_sources = array('value'); |
15 | $obj->ds_names = array('value' => 'Collisions'); | 15 | $obj->legend = array('value' => 'Collisions'); |
16 | $obj->colors = array('value' => '0000ff'); | 16 | $obj->colors = array('value' => '0000ff'); |
17 | $obj->rrd_title = sprintf('Collisions (%s)', $obj->args['pinstance']); | 17 | $obj->rrd_title = sprintf('Collisions (%s)', $obj->args['pinstance']); |
18 | $obj->rrd_vertical = 'Collisions/s'; | 18 | $obj->rrd_vertical = 'Collisions/s'; |
19 | break; | 19 | break; |
20 | case 'if_dropped': | 20 | case 'if_dropped': |
21 | $obj->data_sources = array('rx', 'tx'); | 21 | $obj->data_sources = array('rx', 'tx'); |
22 | $obj->ds_names = array( | 22 | $obj->legend = array( |
23 | 'rx' => 'Receive', | 23 | 'rx' => 'Receive', |
24 | 'tx' => 'Transmit', | 24 | 'tx' => 'Transmit', |
25 | ); | 25 | ); |
@@ -32,7 +32,7 @@ switch($obj->args['type']) { | |||
32 | break; | 32 | break; |
33 | case 'if_errors': | 33 | case 'if_errors': |
34 | $obj->data_sources = array('rx', 'tx'); | 34 | $obj->data_sources = array('rx', 'tx'); |
35 | $obj->ds_names = array( | 35 | $obj->legend = array( |
36 | 'rx' => 'Receive', | 36 | 'rx' => 'Receive', |
37 | 'tx' => 'Transmit', | 37 | 'tx' => 'Transmit', |
38 | ); | 38 | ); |
@@ -45,14 +45,14 @@ switch($obj->args['type']) { | |||
45 | break; | 45 | break; |
46 | case 'if_multicast': | 46 | case 'if_multicast': |
47 | $obj->data_sources = array('value'); | 47 | $obj->data_sources = array('value'); |
48 | $obj->ds_names = array('value' => 'Packets'); | 48 | $obj->legend = array('value' => 'Packets'); |
49 | $obj->colors = array('value' => '0000ff'); | 49 | $obj->colors = array('value' => '0000ff'); |
50 | $obj->rrd_title = sprintf('Multicast Packets (%s)', $obj->args['pinstance']); | 50 | $obj->rrd_title = sprintf('Multicast Packets (%s)', $obj->args['pinstance']); |
51 | $obj->rrd_vertical = 'Packets/s'; | 51 | $obj->rrd_vertical = 'Packets/s'; |
52 | break; | 52 | break; |
53 | case 'if_octets': | 53 | case 'if_octets': |
54 | $obj->data_sources = array('rx', 'tx'); | 54 | $obj->data_sources = array('rx', 'tx'); |
55 | $obj->ds_names = array( | 55 | $obj->legend = array( |
56 | 'rx' => 'Receive', | 56 | 'rx' => 'Receive', |
57 | 'tx' => 'Transmit', | 57 | 'tx' => 'Transmit', |
58 | ); | 58 | ); |
@@ -66,7 +66,7 @@ switch($obj->args['type']) { | |||
66 | break; | 66 | break; |
67 | case 'if_packets': | 67 | case 'if_packets': |
68 | $obj->data_sources = array('rx', 'tx'); | 68 | $obj->data_sources = array('rx', 'tx'); |
69 | $obj->ds_names = array( | 69 | $obj->legend = array( |
70 | 'rx' => 'Receive', | 70 | 'rx' => 'Receive', |
71 | 'tx' => 'Transmit', | 71 | 'tx' => 'Transmit', |
72 | ); | 72 | ); |
@@ -79,7 +79,7 @@ switch($obj->args['type']) { | |||
79 | break; | 79 | break; |
80 | case 'if_rx_errors': | 80 | case 'if_rx_errors': |
81 | $obj->data_sources = array('value'); | 81 | $obj->data_sources = array('value'); |
82 | $obj->ds_names = array( | 82 | $obj->legend = array( |
83 | 'crc' => 'CRC', | 83 | 'crc' => 'CRC', |
84 | 'fifo' => 'FiFo', | 84 | 'fifo' => 'FiFo', |
85 | 'frame' => 'Frame', | 85 | 'frame' => 'Frame', |
@@ -100,7 +100,7 @@ switch($obj->args['type']) { | |||
100 | break; | 100 | break; |
101 | case 'if_tx_errors': | 101 | case 'if_tx_errors': |
102 | $obj->data_sources = array('value'); | 102 | $obj->data_sources = array('value'); |
103 | $obj->ds_names = array( | 103 | $obj->legend = array( |
104 | 'aborted' => 'Aborted', | 104 | 'aborted' => 'Aborted', |
105 | 'carrier' => 'Carrier', | 105 | 'carrier' => 'Carrier', |
106 | 'fifo' => 'FiFo', | 106 | 'fifo' => 'FiFo', |