aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/memcached.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/memcached.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/memcached.php')
-rw-r--r--plugin/memcached.php12
1 files changed, 6 insertions, 6 deletions
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']) {
47 $obj->order = array('flush', 'get', 'set'); 47 $obj->order = array('flush', 'get', 'set');
48 $obj->ds_names = array( 48 $obj->ds_names = array(
49 'flush' => 'Flush', 49 'flush' => 'Flush',
50 'get' => 'Get ', 50 'get' => 'Get',
51 'set' => 'Set ', 51 'set' => 'Set',
52 ); 52 );
53 $obj->colors = array( 53 $obj->colors = array(
54 'flush' => '00e000', 54 'flush' => '00e000',
@@ -96,7 +96,7 @@ switch($_GET['t']) {
96 $obj->data_sources = array('rx', 'tx'); 96 $obj->data_sources = array('rx', 'tx');
97 $obj->order = array('rx', 'tx'); 97 $obj->order = array('rx', 'tx');
98 $obj->ds_names = array( 98 $obj->ds_names = array(
99 'rx' => 'Receive ', 99 'rx' => 'Receive',
100 'tx' => 'Transmit', 100 'tx' => 'Transmit',
101 ); 101 );
102 $obj->colors = array( 102 $obj->colors = array(
@@ -113,8 +113,8 @@ switch($_GET['t']) {
113 $obj->order = array('evictions', 'hits', 'misses'); 113 $obj->order = array('evictions', 'hits', 'misses');
114 $obj->ds_names = array( 114 $obj->ds_names = array(
115 'evictions' => 'Evictions', 115 'evictions' => 'Evictions',
116 'hits' => 'Hits ', 116 'hits' => 'Hits',
117 'misses' => 'Misses ', 117 'misses' => 'Misses',
118 ); 118 );
119 $obj->colors = array( 119 $obj->colors = array(
120 'evictions' => '00e000', 120 'evictions' => '00e000',
@@ -162,7 +162,7 @@ switch($_GET['t']) {
162 $obj->data_sources = array('user', 'syst'); 162 $obj->data_sources = array('user', 'syst');
163 $obj->order = array('user', 'syst'); 163 $obj->order = array('user', 'syst');
164 $obj->ds_names = array( 164 $obj->ds_names = array(
165 'user' => 'User ', 165 'user' => 'User',
166 'syst' => 'System', 166 'syst' => 'System',
167 ); 167 );
168 $obj->colors = array( 168 $obj->colors = array(