diff options
Diffstat (limited to '')
| -rw-r--r-- | plugin/vserver.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/vserver.php b/plugin/vserver.php index 27e739f..80fad3e 100644 --- a/plugin/vserver.php +++ b/plugin/vserver.php | |||
| @@ -34,7 +34,7 @@ switch($obj->args['type']) { | |||
| 34 | $obj = new Type_GenericStacked($CONFIG, $_GET); | 34 | $obj = new Type_GenericStacked($CONFIG, $_GET); |
| 35 | $obj->order = array('vm', 'vml', 'rss', 'anon'); | 35 | $obj->order = array('vm', 'vml', 'rss', 'anon'); |
| 36 | # http://oldwiki.linux-vserver.org/Memory+Allocation | 36 | # http://oldwiki.linux-vserver.org/Memory+Allocation |
| 37 | $obj->ds_names = array( | 37 | $obj->legend = array( |
| 38 | 'vm' => "Virtual memory pages", | 38 | 'vm' => "Virtual memory pages", |
| 39 | 'vml' => "Pages locked into memory", | 39 | 'vml' => "Pages locked into memory", |
| 40 | 'rss' => "Resident set size", | 40 | 'rss' => "Resident set size", |
| @@ -57,7 +57,7 @@ switch($obj->args['type']) { | |||
| 57 | $obj = new Type_GenericStacked($CONFIG, $_GET); | 57 | $obj = new Type_GenericStacked($CONFIG, $_GET); |
| 58 | $obj->order = array('running', 'uninterruptable', 'onhold', 'total'); | 58 | $obj->order = array('running', 'uninterruptable', 'onhold', 'total'); |
| 59 | # http://linux-vserver.org/ProcFS | 59 | # http://linux-vserver.org/ProcFS |
| 60 | $obj->ds_names = array( | 60 | $obj->legend = array( |
| 61 | 'onhold' => "Number of threads on hold", | 61 | 'onhold' => "Number of threads on hold", |
| 62 | 'running' => "Number of running threads", | 62 | 'running' => "Number of running threads", |
| 63 | 'total' => "Total number of threads", | 63 | 'total' => "Total number of threads", |
| @@ -78,7 +78,7 @@ switch($obj->args['type']) { | |||
| 78 | break; | 78 | break; |
| 79 | case 'if_octets': | 79 | case 'if_octets': |
| 80 | $obj->data_sources = array('rx', 'tx'); | 80 | $obj->data_sources = array('rx', 'tx'); |
| 81 | $obj->ds_names = array( | 81 | $obj->legend = array( |
| 82 | 'inet-rx' => 'IPv4 Receive', | 82 | 'inet-rx' => 'IPv4 Receive', |
| 83 | 'inet-tx' => 'IPv4 Transmit', | 83 | 'inet-tx' => 'IPv4 Transmit', |
| 84 | 'inet6-rx' => 'IPv6 Receive', | 84 | 'inet6-rx' => 'IPv6 Receive', |
| @@ -105,7 +105,7 @@ switch($obj->args['type']) { | |||
| 105 | break; | 105 | break; |
| 106 | case 'vs_processes': | 106 | case 'vs_processes': |
| 107 | $obj->data_sources = array('value'); | 107 | $obj->data_sources = array('value'); |
| 108 | $obj->ds_names = array( | 108 | $obj->legend = array( |
| 109 | 'value' => 'Processes', | 109 | 'value' => 'Processes', |
| 110 | ); | 110 | ); |
| 111 | $obj->rrd_title = sprintf('Processes on Vserver %s', $obj->args['pinstance']); | 111 | $obj->rrd_title = sprintf('Processes on Vserver %s', $obj->args['pinstance']); |
