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/memcached.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugin/memcached.php') diff --git a/plugin/memcached.php b/plugin/memcached.php index b8dff28..6157d69 100644 --- a/plugin/memcached.php +++ b/plugin/memcached.php @@ -47,8 +47,8 @@ switch($_GET['t']) { $obj->order = array('flush', 'get', 'set'); $obj->ds_names = array( 'flush' => 'Flush', - 'get' => 'Get ', - 'set' => 'Set ', + 'get' => 'Get', + 'set' => 'Set', ); $obj->colors = array( 'flush' => '00e000', @@ -96,7 +96,7 @@ switch($_GET['t']) { $obj->data_sources = array('rx', 'tx'); $obj->order = array('rx', 'tx'); $obj->ds_names = array( - 'rx' => 'Receive ', + 'rx' => 'Receive', 'tx' => 'Transmit', ); $obj->colors = array( @@ -113,8 +113,8 @@ switch($_GET['t']) { $obj->order = array('evictions', 'hits', 'misses'); $obj->ds_names = array( 'evictions' => 'Evictions', - 'hits' => 'Hits ', - 'misses' => 'Misses ', + 'hits' => 'Hits', + 'misses' => 'Misses', ); $obj->colors = array( 'evictions' => '00e000', @@ -162,7 +162,7 @@ switch($_GET['t']) { $obj->data_sources = array('user', 'syst'); $obj->order = array('user', 'syst'); $obj->ds_names = array( - 'user' => 'User ', + 'user' => 'User', 'syst' => 'System', ); $obj->colors = array( -- cgit v1.1