From dc2735abe0b425ec54a2ca4611954b170031b0f1 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 16 Jun 2013 16:15:32 +0200 Subject: plugin/openvpn: add datasize support --- plugin/openvpn.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')) { 'tx' => '00b000', ); $obj->rrd_title = sprintf('Traffic (%s)', $obj->args['pinstance']); - $obj->rrd_vertical = '%s per second'; + $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['network_datasize'])); + $obj->scale = $CONFIG['network_datasize'] == 'bits' ? 8 : 1; $obj->rrd_format = '%5.1lf%s'; break; case 'users': -- cgit v1.1