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/cpu.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugin/cpu.php') 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); $obj->data_sources = array('value'); $obj->order = array('idle', 'nice', 'user', 'wait', 'system', 'softirq', 'interrupt', 'steal'); $obj->ds_names = array( - 'idle' => 'Idle ', - 'nice' => 'Nice ', - 'user' => 'User ', + 'idle' => 'Idle', + 'nice' => 'Nice', + 'user' => 'User', 'wait' => 'Wait-IO', - 'system' => 'System ', + 'system' => 'System', 'softirq' => 'SoftIRQ', - 'interrupt' => 'IRQ ', - 'steal' => 'Steal ', + 'interrupt' => 'IRQ', + 'steal' => 'Steal', ); $obj->colors = array( 'idle' => 'e8e8e8', -- cgit v1.1