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/sensors.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/sensors.php') diff --git a/plugin/sensors.php b/plugin/sensors.php index ddcf521..048f9f1 100644 --- a/plugin/sensors.php +++ b/plugin/sensors.php @@ -34,19 +34,19 @@ $obj->seconds = $seconds; switch($type) { case 'fanspeed': $obj->colors = '00ff00'; - $obj->rrd_title = "Fanspeed ($pinstance) on $host"; + $obj->rrd_title = sprintf('Fanspeed (%s)', $pinstance); $obj->rrd_vertical = 'RPM'; $obj->rrd_format = '%5.1lf'; break; case 'temperature': $obj->colors = '0000ff'; - $obj->rrd_title = "Temperature ($pinstance) on $host"; + $obj->rrd_title = sprintf('Temperature (%s)', $pinstance); $obj->rrd_vertical = 'Celius'; $obj->rrd_format = '%5.1lf%s'; break; case 'voltage': $obj->colors = 'ff0000'; - $obj->rrd_title = "Voltage ($pinstance) on $host"; + $obj->rrd_title = sprintf('Voltage (%s)', $pinstance); $obj->rrd_vertical = 'Volt'; $obj->rrd_format = '%5.1lf'; break; -- cgit v1.1