aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/vserver.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/vserver.php')
-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(