aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/openvpn.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/openvpn.php')
-rw-r--r--plugin/openvpn.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/openvpn.php b/plugin/openvpn.php
index 63111f5..0f1a2c2 100644
--- a/plugin/openvpn.php
+++ b/plugin/openvpn.php
@@ -24,7 +24,8 @@ switch(GET('t')) {
24 'tx' => '00b000', 24 'tx' => '00b000',
25 ); 25 );
26 $obj->rrd_title = sprintf('Traffic (%s)', $obj->args['pinstance']); 26 $obj->rrd_title = sprintf('Traffic (%s)', $obj->args['pinstance']);
27 $obj->rrd_vertical = '%s per second'; 27 $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['network_datasize']));
28 $obj->scale = $CONFIG['network_datasize'] == 'bits' ? 8 : 1;
28 $obj->rrd_format = '%5.1lf%s'; 29 $obj->rrd_format = '%5.1lf%s';
29 break; 30 break;
30 case 'users': 31 case 'users':