aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/libvirt.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugin/libvirt.php20
1 files changed, 10 insertions, 10 deletions
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);
20switch($obj->args['type']) { 20switch($obj->args['type']) {
21 case 'disk_octets': 21 case 'disk_octets':
22 $obj->data_sources = array('read', 'write'); 22 $obj->data_sources = array('read', 'write');
23 $obj->ds_names = array( 23 $obj->legend = array(
24 'read' => 'Read', 24 'read' => 'Read',
25 'write' => 'Written', 25 'write' => 'Written',
26 ); 26 );
@@ -34,7 +34,7 @@ switch($obj->args['type']) {
34 break; 34 break;
35 case 'disk_ops': 35 case 'disk_ops':
36 $obj->data_sources = array('read', 'write'); 36 $obj->data_sources = array('read', 'write');
37 $obj->ds_names = array( 37 $obj->legend = array(
38 'read' => 'Read', 38 'read' => 'Read',
39 'write' => 'Written', 39 'write' => 'Written',
40 ); 40 );
@@ -48,7 +48,7 @@ switch($obj->args['type']) {
48 break; 48 break;
49 case 'if_dropped': 49 case 'if_dropped':
50 $obj->data_sources = array('rx', 'tx'); 50 $obj->data_sources = array('rx', 'tx');
51 $obj->ds_names = array( 51 $obj->legend = array(
52 'rx' => 'Receive', 52 'rx' => 'Receive',
53 'tx' => 'Transmit', 53 'tx' => 'Transmit',
54 ); 54 );
@@ -61,7 +61,7 @@ switch($obj->args['type']) {
61 break; 61 break;
62 case 'if_errors': 62 case 'if_errors':
63 $obj->data_sources = array('rx', 'tx'); 63 $obj->data_sources = array('rx', 'tx');
64 $obj->ds_names = array( 64 $obj->legend = array(
65 'rx' => 'Receive', 65 'rx' => 'Receive',
66 'tx' => 'Transmit', 66 'tx' => 'Transmit',
67 ); 67 );
@@ -74,7 +74,7 @@ switch($obj->args['type']) {
74 break; 74 break;
75 case 'if_octets': 75 case 'if_octets':
76 $obj->data_sources = array('rx', 'tx'); 76 $obj->data_sources = array('rx', 'tx');
77 $obj->ds_names = array( 77 $obj->legend = array(
78 'rx' => 'Receive', 78 'rx' => 'Receive',
79 'tx' => 'Transmit', 79 'tx' => 'Transmit',
80 ); 80 );
@@ -88,7 +88,7 @@ switch($obj->args['type']) {
88 break; 88 break;
89 case 'if_packets': 89 case 'if_packets':
90 $obj->data_sources = array('rx', 'tx'); 90 $obj->data_sources = array('rx', 'tx');
91 $obj->ds_names = array( 91 $obj->legend = array(
92 'rx' => 'Receive', 92 'rx' => 'Receive',
93 'tx' => 'Transmit', 93 'tx' => 'Transmit',
94 ); 94 );
@@ -104,7 +104,7 @@ switch($obj->args['type']) {
104 $obj = new Type_Default($CONFIG, $_GET); 104 $obj = new Type_Default($CONFIG, $_GET);
105 105
106 $obj->data_sources = array('value'); 106 $obj->data_sources = array('value');
107 $obj->ds_names = array( 107 $obj->legend = array(
108 'value' => 'CPU time', 108 'value' => 'CPU time',
109 ); 109 );
110 $obj->colors = array( 110 $obj->colors = array(
@@ -118,7 +118,7 @@ switch($obj->args['type']) {
118 $obj = new Type_Default($CONFIG, $_GET); 118 $obj = new Type_Default($CONFIG, $_GET);
119 119
120 $obj->data_sources = array('value'); 120 $obj->data_sources = array('value');
121 $obj->ds_names = array( 121 $obj->legend = array(
122 'value' => 'VCPU time', 122 'value' => 'VCPU time',
123 ); 123 );
124 $obj->colors = array( 124 $obj->colors = array(
@@ -134,8 +134,8 @@ $obj->rrd_format = '%5.1lf%s';
134if ($CONFIG['version'] < 5 && count($obj->data_sources) == 1) { 134if ($CONFIG['version'] < 5 && count($obj->data_sources) == 1) {
135 $obj->data_sources = array('ns'); 135 $obj->data_sources = array('ns');
136 136
137 $obj->ds_names['ns'] = $obj->ds_names['value']; 137 $obj->legend['ns'] = $obj->legend['value'];
138 unset($obj->ds_names['value']); 138 unset($obj->legend['value']);
139 139
140 $obj->colors['ns'] = $obj->colors['value']; 140 $obj->colors['ns'] = $obj->colors['value'];
141 unset($obj->colors['value']); 141 unset($obj->colors['value']);