aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/swap.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/swap.php')
-rw-r--r--plugin/swap.php4
1 files changed, 2 insertions, 2 deletions
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';
14switch($_GET['t']) { 14switch($_GET['t']) {
15 case 'swap': 15 case 'swap':
16 require_once 'type/GenericStacked.class.php'; 16 require_once 'type/GenericStacked.class.php';
17 $obj = new Type_GenericStacked($CONFIG['datadir']); 17 $obj = new Type_GenericStacked($CONFIG);
18 $obj->order = array('free', 'cached', 'used'); 18 $obj->order = array('free', 'cached', 'used');
19 $obj->ds_names = array( 19 $obj->ds_names = array(
20 'free' => 'Free ', 20 'free' => 'Free ',
@@ -31,7 +31,7 @@ switch($_GET['t']) {
31 break; 31 break;
32 case 'swap_io': 32 case 'swap_io':
33 require_once 'type/GenericIO.class.php'; 33 require_once 'type/GenericIO.class.php';
34 $obj = new Type_GenericIO($CONFIG['datadir']); 34 $obj = new Type_GenericIO($CONFIG);
35 $obj->order = array('out', 'in'); 35 $obj->order = array('out', 'in');
36 $obj->ds_names = array( 36 $obj->ds_names = array(
37 'out' => 'Out', 37 'out' => 'Out',