From 10ad741a22797b6710be1091d9e502e71929f255 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 17 Sep 2010 21:24:35 +0200 Subject: 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. --- plugin/swap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/swap.php') 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']) { $obj = new Type_GenericStacked($CONFIG); $obj->order = array('free', 'cached', 'used'); $obj->ds_names = array( - 'free' => 'Free ', + 'free' => 'Free', 'cached' => 'Cached', - 'used' => 'Used ', + 'used' => 'Used', ); $obj->colors = array( 'free' => '00e000', @@ -35,7 +35,7 @@ switch($_GET['t']) { $obj->order = array('out', 'in'); $obj->ds_names = array( 'out' => 'Out', - 'in' => 'In ', + 'in' => 'In', ); $obj->colors = array( 'out' => '0000ff', -- cgit v1.1