From 853a4e939c99fb683983d947f4267bf249f7c05e Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Thu, 31 Dec 2009 11:42:14 +0100 Subject: always show 'on $host' in the rrd title 'on $host' doesn't have to be added manually to rrd_title anymore. --- plugin/cpu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/cpu.php') diff --git a/plugin/cpu.php b/plugin/cpu.php index 5f688f4..4cc74f6 100644 --- a/plugin/cpu.php +++ b/plugin/cpu.php @@ -55,7 +55,7 @@ $obj->width = $width; $obj->heigth = $heigth; $obj->seconds = $seconds; -$obj->rrd_title = "CPU-$pinstance usage on $host"; +$obj->rrd_title = sprintf('CPU-%s usage', $pinstance); $obj->rrd_vertical = 'Jiffies'; $obj->rrd_format = '%5.2lf'; -- cgit v1.1