diff options
author | Pim van den Berg | 2014-05-03 11:15:53 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-05-03 11:15:53 +0200 |
commit | 1c888304d33a8c1405b8716356ae300fad39521c (patch) | |
tree | ce0f5ef1946da9fd006a333f49233007fa574ae4 /plugin/libvirt.php | |
parent | inc: mv graphs_from_plugin, build_url functions to html.inc.php (diff) | |
download | apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.zip apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.gz apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.bz2 apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.xz |
type/Default: don't depend on external function GET
Diffstat (limited to '')
-rw-r--r-- | plugin/libvirt.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/libvirt.php b/plugin/libvirt.php index 1cc05c2..08d0a6d 100644 --- a/plugin/libvirt.php +++ b/plugin/libvirt.php | |||
@@ -16,7 +16,7 @@ require_once 'inc/collectd.inc.php'; | |||
16 | # libvirt/virt_cpu_total.rrd | 16 | # libvirt/virt_cpu_total.rrd |
17 | 17 | ||
18 | require_once 'type/GenericIO.class.php'; | 18 | require_once 'type/GenericIO.class.php'; |
19 | $obj = new Type_GenericIO($CONFIG); | 19 | $obj = new Type_GenericIO($CONFIG, $_GET); |
20 | 20 | ||
21 | switch($obj->args['type']) { | 21 | switch($obj->args['type']) { |
22 | case 'disk_octets': | 22 | case 'disk_octets': |
@@ -102,7 +102,7 @@ switch($obj->args['type']) { | |||
102 | break; | 102 | break; |
103 | case 'virt_cpu_total': | 103 | case 'virt_cpu_total': |
104 | require_once 'type/Default.class.php'; | 104 | require_once 'type/Default.class.php'; |
105 | $obj = new Type_Default($CONFIG); | 105 | $obj = new Type_Default($CONFIG, $_GET); |
106 | 106 | ||
107 | $obj->data_sources = array('value'); | 107 | $obj->data_sources = array('value'); |
108 | $obj->ds_names = array( | 108 | $obj->ds_names = array( |
@@ -116,7 +116,7 @@ switch($obj->args['type']) { | |||
116 | break; | 116 | break; |
117 | case 'virt_vcpu': | 117 | case 'virt_vcpu': |
118 | require_once 'type/Default.class.php'; | 118 | require_once 'type/Default.class.php'; |
119 | $obj = new Type_Default($CONFIG); | 119 | $obj = new Type_Default($CONFIG, $_GET); |
120 | 120 | ||
121 | $obj->data_sources = array('value'); | 121 | $obj->data_sources = array('value'); |
122 | $obj->ds_names = array( | 122 | $obj->ds_names = array( |