From 924495bb2d732548083de9e54bf93eebe7f0d910 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Tue, 12 Jan 2010 19:58:47 +0100 Subject: make rrdtool executable configurable --- 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 27bf7f9..e1fa3f6 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['datadir']); + $obj = new Type_GenericStacked($CONFIG); $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['datadir']); + $obj = new Type_GenericIO($CONFIG); $obj->order = array('out', 'in'); $obj->ds_names = array( 'out' => 'Out', -- cgit v1.1