diff options
author | Pim van den Berg | 2010-09-17 21:24:35 +0200 |
---|---|---|
committer | Pim van den Berg | 2010-09-17 21:24:35 +0200 |
commit | 10ad741a22797b6710be1091d9e502e71929f255 (patch) | |
tree | edb5d5046eba5de647f12e8c9480faa054dd09f7 /plugin/memory.php | |
parent | plugin/nfs: clean up some duplicate code (diff) | |
download | apt-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/memory.php')
-rw-r--r-- | plugin/memory.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/memory.php b/plugin/memory.php index 71e395c..ca85078 100644 --- a/plugin/memory.php +++ b/plugin/memory.php | |||
@@ -16,11 +16,11 @@ require_once 'inc/collectd.inc.php'; | |||
16 | $obj = new Type_GenericStacked($CONFIG); | 16 | $obj = new Type_GenericStacked($CONFIG); |
17 | $obj->order = array('free', 'buffered', 'cached', 'locked', 'used'); | 17 | $obj->order = array('free', 'buffered', 'cached', 'locked', 'used'); |
18 | $obj->ds_names = array( | 18 | $obj->ds_names = array( |
19 | 'free' => 'Free ', | 19 | 'free' => 'Free', |
20 | 'cached' => 'Cached ', | 20 | 'cached' => 'Cached', |
21 | 'buffered' => 'Buffered', | 21 | 'buffered' => 'Buffered', |
22 | 'locked' => 'Locked ', | 22 | 'locked' => 'Locked', |
23 | 'used' => 'Used ', | 23 | 'used' => 'Used', |
24 | ); | 24 | ); |
25 | $obj->colors = array( | 25 | $obj->colors = array( |
26 | 'free' => '00e000', | 26 | 'free' => '00e000', |