aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/cpu.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/cpu.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 '')
-rw-r--r--plugin/cpu.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin/cpu.php b/plugin/cpu.php
index 081427f..5aeaf24 100644
--- a/plugin/cpu.php
+++ b/plugin/cpu.php
@@ -21,14 +21,14 @@ $obj = new Type_GenericStacked($CONFIG);
21$obj->data_sources = array('value'); 21$obj->data_sources = array('value');
22$obj->order = array('idle', 'nice', 'user', 'wait', 'system', 'softirq', 'interrupt', 'steal'); 22$obj->order = array('idle', 'nice', 'user', 'wait', 'system', 'softirq', 'interrupt', 'steal');
23$obj->ds_names = array( 23$obj->ds_names = array(
24 'idle' => 'Idle ', 24 'idle' => 'Idle',
25 'nice' => 'Nice ', 25 'nice' => 'Nice',
26 'user' => 'User ', 26 'user' => 'User',
27 'wait' => 'Wait-IO', 27 'wait' => 'Wait-IO',
28 'system' => 'System ', 28 'system' => 'System',
29 'softirq' => 'SoftIRQ', 29 'softirq' => 'SoftIRQ',
30 'interrupt' => 'IRQ ', 30 'interrupt' => 'IRQ',
31 'steal' => 'Steal ', 31 'steal' => 'Steal',
32); 32);
33$obj->colors = array( 33$obj->colors = array(
34 'idle' => 'e8e8e8', 34 'idle' => 'e8e8e8',