aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/vmem.php
diff options
context:
space:
mode:
authorPim van den Berg2010-09-17 21:24:35 +0200
committerPim van den Berg2010-09-17 21:24:35 +0200
commit10ad741a22797b6710be1091d9e502e71929f255 (patch)
treeedb5d5046eba5de647f12e8c9480faa054dd09f7 /plugin/vmem.php
parentplugin/nfs: clean up some duplicate code (diff)
downloadapt-panopticon_cgp-10ad741a22797b6710be1091d9e502e71929f255.zip
apt-panopticon_cgp-10ad741a22797b6710be1091d9e502e71929f255.tar.gz
apt-panopticon_cgp-10ad741a22797b6710be1091d9e502e71929f255.tar.bz2
apt-panopticon_cgp-10ad741a22797b6710be1091d9e502e71929f255.tar.xz
automatic alignment of graph legend
Function fill_ds_names is renamed to parse_ds_names and now also appends spaces to ds_names to make them equal of lenght.
Diffstat (limited to 'plugin/vmem.php')
-rw-r--r--plugin/vmem.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/vmem.php b/plugin/vmem.php
index e465932..d7f9830 100644
--- a/plugin/vmem.php
+++ b/plugin/vmem.php
@@ -29,10 +29,10 @@ switch($obj->args['type']) {
29 break; 29 break;
30 case 'vmpage_io': 30 case 'vmpage_io':
31 $obj->data_sources = array('in', 'out'); 31 $obj->data_sources = array('in', 'out');
32 $obj->ds_names = array('memory-in' => 'Memory (in) ', 32 $obj->ds_names = array('memory-in' => 'Memory (in)',
33 'memory-out' => 'Memory (out)', 33 'memory-out' => 'Memory (out)',
34 'swap-in' => 'Swap (in) ', 34 'swap-in' => 'Swap (in)',
35 'swap-out' => 'Swap (out) '); 35 'swap-out' => 'Swap (out)');
36 $obj->colors = array('memory-in' => 'ff0000', 36 $obj->colors = array('memory-in' => 'ff0000',
37 'memory-out' => '0000ff', 37 'memory-out' => '0000ff',
38 'swap-in' => 'ff00ff', 38 'swap-in' => 'ff00ff',