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/interface.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/interface.php') diff --git a/plugin/interface.php b/plugin/interface.php index 45e3cf1..7d8d929 100644 --- a/plugin/interface.php +++ b/plugin/interface.php @@ -36,15 +36,15 @@ $obj->seconds = $seconds; $obj->rrd_format = '%5.1lf%s'; switch($type) { case 'if_errors': - $obj->rrd_title = "Interface Errors ($tinstance) on $host"; + $obj->rrd_title = sprintf('Interface Errors (%s)', $tinstance); $obj->rrd_vertical = 'Errors per second'; break; case 'if_octets': - $obj->rrd_title = "Interface Traffic ($tinstance) on $host"; + $obj->rrd_title = sprintf('Interface Traffic (%s)', $tinstance); $obj->rrd_vertical = 'Bits per second'; break; case 'if_packets': - $obj->rrd_title = "Interface Packets ($tinstance) on $host"; + $obj->rrd_title = sprintf('Interface Packets (%s)', $tinstance); $obj->rrd_vertical = 'Packets per second'; break; } -- cgit v1.1