diff options
author | jim-p <jimp@pfsense.org> | 2014-06-16 13:59:34 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-06-16 14:00:00 -0400 |
commit | ef462f2580c8e936b9b86c219ab1222498871f1b (patch) | |
tree | 73b6912150eb8a2db5df5bcd1f75861de0c2412d /usr/local | |
parent | bc3885336de75542b9f5b53b1e8d6b3041b4a513 (diff) | |
download | pfsense-ef462f2580c8e936b9b86c219ab1222498871f1b.zip pfsense-ef462f2580c8e936b9b86c219ab1222498871f1b.tar.gz |
Make the byte counts on OpenVPN status human readable rather than huge unformatted numbers.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/status_openvpn.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/status_openvpn.php b/usr/local/www/status_openvpn.php index bcc4b9f..726f5d7 100644 --- a/usr/local/www/status_openvpn.php +++ b/usr/local/www/status_openvpn.php @@ -177,10 +177,10 @@ include("head.inc"); ?> <?=$conn['connect_time'];?> </td> <td class="listr"> - <?=$conn['bytes_sent'];?> + <?=format_bytes($conn['bytes_sent']);?> </td> <td class="listr"> - <?=$conn['bytes_recv'];?> + <?=format_bytes($conn['bytes_recv']);?> </td> <td class="list"> <img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" height="17" width="17" border="0" @@ -301,10 +301,10 @@ include("head.inc"); ?> <?=$sk_server['remote_host'];?> </td> <td class="listr"> - <?=$sk_server['bytes_sent'];?> + <?=format_bytes($sk_server['bytes_sent']);?> </td> <td class="listr"> - <?=$sk_server['bytes_recv'];?> + <?=format_bytes($sk_server['bytes_recv']);?> </td> <td class="listr"> <table> @@ -364,10 +364,10 @@ include("head.inc"); ?> <?=$client['remote_host'];?> </td> <td class="listr"> - <?=$client['bytes_sent'];?> + <?=format_bytes($client['bytes_sent']);?> </td> <td class="listr"> - <?=$client['bytes_recv'];?> + <?=format_bytes($client['bytes_recv']);?> </td> <td class="listr" height="12"> <table> |