Révision ef462f25
Ajouté par jim-p il y a presque 10 ans
usr/local/www/status_openvpn.php | ||
---|---|---|
177 | 177 |
<?=$conn['connect_time'];?> |
178 | 178 |
</td> |
179 | 179 |
<td class="listr"> |
180 |
<?=$conn['bytes_sent'];?>
|
|
180 |
<?=format_bytes($conn['bytes_sent']);?>
|
|
181 | 181 |
</td> |
182 | 182 |
<td class="listr"> |
183 |
<?=$conn['bytes_recv'];?>
|
|
183 |
<?=format_bytes($conn['bytes_recv']);?>
|
|
184 | 184 |
</td> |
185 | 185 |
<td class="list"> |
186 | 186 |
<img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" height="17" width="17" border="0" |
... | ... | |
301 | 301 |
<?=$sk_server['remote_host'];?> |
302 | 302 |
</td> |
303 | 303 |
<td class="listr"> |
304 |
<?=$sk_server['bytes_sent'];?>
|
|
304 |
<?=format_bytes($sk_server['bytes_sent']);?>
|
|
305 | 305 |
</td> |
306 | 306 |
<td class="listr"> |
307 |
<?=$sk_server['bytes_recv'];?>
|
|
307 |
<?=format_bytes($sk_server['bytes_recv']);?>
|
|
308 | 308 |
</td> |
309 | 309 |
<td class="listr"> |
310 | 310 |
<table> |
... | ... | |
364 | 364 |
<?=$client['remote_host'];?> |
365 | 365 |
</td> |
366 | 366 |
<td class="listr"> |
367 |
<?=$client['bytes_sent'];?>
|
|
367 |
<?=format_bytes($client['bytes_sent']);?>
|
|
368 | 368 |
</td> |
369 | 369 |
<td class="listr"> |
370 |
<?=$client['bytes_recv'];?>
|
|
370 |
<?=format_bytes($client['bytes_recv']);?>
|
|
371 | 371 |
</td> |
372 | 372 |
<td class="listr" height="12"> |
373 | 373 |
<table> |
Formats disponibles : Unified diff
Make the byte counts on OpenVPN status human readable rather than huge unformatted numbers.