aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/vserver.php
diff options
context:
space:
mode:
authorPim van den Berg2014-05-03 11:15:53 +0200
committerPim van den Berg2014-05-03 11:15:53 +0200
commit1c888304d33a8c1405b8716356ae300fad39521c (patch)
treece0f5ef1946da9fd006a333f49233007fa574ae4 /plugin/vserver.php
parentinc: mv graphs_from_plugin, build_url functions to html.inc.php (diff)
downloadapt-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/vserver.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/vserver.php b/plugin/vserver.php
index 186166d..8eee8db 100644
--- a/plugin/vserver.php
+++ b/plugin/vserver.php
@@ -25,14 +25,14 @@ require_once 'inc/collectd.inc.php';
25# vserver-XXXX/vs_threads-total.rrd 25# vserver-XXXX/vs_threads-total.rrd
26# vserver-XXXX/vs_threads-uninterruptable.rrd 26# vserver-XXXX/vs_threads-uninterruptable.rrd
27 27
28$obj = new Type_Default($CONFIG); 28$obj = new Type_Default($CONFIG, $_GET);
29 29
30switch($obj->args['type']) { 30switch($obj->args['type']) {
31 case 'load': 31 case 'load':
32 require_once "plugin/load.php"; 32 require_once "plugin/load.php";
33 break; 33 break;
34 case 'vs_memory': 34 case 'vs_memory':
35 $obj = new Type_GenericStacked($CONFIG); 35 $obj = new Type_GenericStacked($CONFIG, $_GET);
36 $obj->order = array('vm', 'vml', 'rss', 'anon'); 36 $obj->order = array('vm', 'vml', 'rss', 'anon');
37 # http://oldwiki.linux-vserver.org/Memory+Allocation 37 # http://oldwiki.linux-vserver.org/Memory+Allocation
38 $obj->ds_names = array( 38 $obj->ds_names = array(
@@ -56,7 +56,7 @@ switch($obj->args['type']) {
56 $obj->rrd_graph(); 56 $obj->rrd_graph();
57 break; 57 break;
58 case 'vs_threads': 58 case 'vs_threads':
59 $obj = new Type_GenericStacked($CONFIG); 59 $obj = new Type_GenericStacked($CONFIG, $_GET);
60 $obj->order = array('running', 'uninterruptable', 'onhold', 'total'); 60 $obj->order = array('running', 'uninterruptable', 'onhold', 'total');
61 # http://linux-vserver.org/ProcFS 61 # http://linux-vserver.org/ProcFS
62 $obj->ds_names = array( 62 $obj->ds_names = array(