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/swap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/swap.php') diff --git a/plugin/swap.php b/plugin/swap.php index 863c600..983d38d 100644 --- a/plugin/swap.php +++ b/plugin/swap.php @@ -14,7 +14,7 @@ require_once 'inc/collectd.inc.php'; switch(GET('t')) { case 'swap': require_once 'type/GenericStacked.class.php'; - $obj = new Type_GenericStacked($CONFIG); + $obj = new Type_GenericStacked($CONFIG, $_GET); $obj->order = array('free', 'cached', 'used'); $obj->ds_names = array( 'free' => 'Free', @@ -31,7 +31,7 @@ switch(GET('t')) { break; case 'swap_io': require_once 'type/GenericIO.class.php'; - $obj = new Type_GenericIO($CONFIG); + $obj = new Type_GenericIO($CONFIG, $_GET); $obj->order = array('out', 'in'); $obj->ds_names = array( 'out' => 'Out', -- cgit v1.1