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/swap.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/swap.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'; | |||
14 | switch(GET('t')) { | 14 | switch(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); | 17 | $obj = new Type_GenericStacked($CONFIG, $_GET); |
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); | 34 | $obj = new Type_GenericIO($CONFIG, $_GET); |
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', |