aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/interface.php
diff options
context:
space:
mode:
authorPim van den Berg2009-12-31 11:42:14 +0100
committerPim van den Berg2009-12-31 12:39:43 +0100
commit853a4e939c99fb683983d947f4267bf249f7c05e (patch)
treecfffabaa43f218fbc29c2b00cc7ceb36168a8b90 /plugin/interface.php
parentreplace duplicate code by function rrd_options (diff)
downloadapt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.zip
apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.gz
apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.bz2
apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.xz
always show 'on $host' in the rrd title
'on $host' doesn't have to be added manually to rrd_title anymore.
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}