aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/interface.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/interface.php')
-rw-r--r--plugin/interface.php6
1 files changed, 3 insertions, 3 deletions
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;
36$obj->rrd_format = '%5.1lf%s'; 36$obj->rrd_format = '%5.1lf%s';
37switch($type) { 37switch($type) {
38 case 'if_errors': 38 case 'if_errors':
39 $obj->rrd_title = "Interface Errors ($tinstance) on $host"; 39 $obj->rrd_title = sprintf('Interface Errors (%s)', $tinstance);
40 $obj->rrd_vertical = 'Errors per second'; 40 $obj->rrd_vertical = 'Errors per second';
41 break; 41 break;
42 case 'if_octets': 42 case 'if_octets':
43 $obj->rrd_title = "Interface Traffic ($tinstance) on $host"; 43 $obj->rrd_title = sprintf('Interface Traffic (%s)', $tinstance);
44 $obj->rrd_vertical = 'Bits per second'; 44 $obj->rrd_vertical = 'Bits per second';
45 break; 45 break;
46 case 'if_packets': 46 case 'if_packets':
47 $obj->rrd_title = "Interface Packets ($tinstance) on $host"; 47 $obj->rrd_title = sprintf('Interface Packets (%s)', $tinstance);
48 $obj->rrd_vertical = 'Packets per second'; 48 $obj->rrd_vertical = 'Packets per second';
49 break; 49 break;
50} 50}