summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-06-16 13:59:34 -0400
committerjim-p <jimp@pfsense.org>2014-06-16 14:00:00 -0400
commitef462f2580c8e936b9b86c219ab1222498871f1b (patch)
tree73b6912150eb8a2db5df5bcd1f75861de0c2412d /usr/local
parentbc3885336de75542b9f5b53b1e8d6b3041b4a513 (diff)
downloadpfsense-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.php12
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>
OpenPOWER on IntegriCloud