aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/interface.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/interface.php')
-rw-r--r--plugin/interface.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/interface.php b/plugin/interface.php
index f200813..107cb27 100644
--- a/plugin/interface.php
+++ b/plugin/interface.php
@@ -39,7 +39,8 @@ switch($obj->args['type']) {
39 break; 39 break;
40 case 'if_octets': 40 case 'if_octets':
41 $obj->rrd_title = sprintf('Interface Traffic (%s)', $obj->args[$instance]); 41 $obj->rrd_title = sprintf('Interface Traffic (%s)', $obj->args[$instance]);
42 $obj->rrd_vertical = 'Bytes per second'; 42 $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['datasize']));
43 $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1;
43 break; 44 break;
44 case 'if_packets': 45 case 'if_packets':
45 $obj->rrd_title = sprintf('Interface Packets (%s)', $obj->args[$instance]); 46 $obj->rrd_title = sprintf('Interface Packets (%s)', $obj->args[$instance]);