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/swap.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/swap.php')
-rw-r--r-- | plugin/swap.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/swap.php b/plugin/swap.php index a8d06d4..7902081 100644 --- a/plugin/swap.php +++ b/plugin/swap.php | |||
@@ -17,9 +17,9 @@ switch($_GET['t']) { | |||
17 | $obj = new Type_GenericStacked($CONFIG); | 17 | $obj = new Type_GenericStacked($CONFIG); |
18 | $obj->order = array('free', 'cached', 'used'); | 18 | $obj->order = array('free', 'cached', 'used'); |
19 | $obj->ds_names = array( | 19 | $obj->ds_names = array( |
20 | 'free' => 'Free ', | 20 | 'free' => 'Free', |
21 | 'cached' => 'Cached', | 21 | 'cached' => 'Cached', |
22 | 'used' => 'Used ', | 22 | 'used' => 'Used', |
23 | ); | 23 | ); |
24 | $obj->colors = array( | 24 | $obj->colors = array( |
25 | 'free' => '00e000', | 25 | 'free' => '00e000', |
@@ -35,7 +35,7 @@ switch($_GET['t']) { | |||
35 | $obj->order = array('out', 'in'); | 35 | $obj->order = array('out', 'in'); |
36 | $obj->ds_names = array( | 36 | $obj->ds_names = array( |
37 | 'out' => 'Out', | 37 | 'out' => 'Out', |
38 | 'in' => 'In ', | 38 | 'in' => 'In', |
39 | ); | 39 | ); |
40 | $obj->colors = array( | 40 | $obj->colors = array( |
41 | 'out' => '0000ff', | 41 | 'out' => '0000ff', |