From 1c888304d33a8c1405b8716356ae300fad39521c Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 3 May 2014 11:15:53 +0200 Subject: type/Default: don't depend on external function GET --- plugin/libvirt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/libvirt.php') 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'; # libvirt/virt_cpu_total.rrd require_once 'type/GenericIO.class.php'; -$obj = new Type_GenericIO($CONFIG); +$obj = new Type_GenericIO($CONFIG, $_GET); switch($obj->args['type']) { case 'disk_octets': @@ -102,7 +102,7 @@ switch($obj->args['type']) { break; case 'virt_cpu_total': require_once 'type/Default.class.php'; - $obj = new Type_Default($CONFIG); + $obj = new Type_Default($CONFIG, $_GET); $obj->data_sources = array('value'); $obj->ds_names = array( @@ -116,7 +116,7 @@ switch($obj->args['type']) { break; case 'virt_vcpu': require_once 'type/Default.class.php'; - $obj = new Type_Default($CONFIG); + $obj = new Type_Default($CONFIG, $_GET); $obj->data_sources = array('value'); $obj->ds_names = array( -- cgit v1.1