diff options
author | Phil Davis <phil.davis@inf.org> | 2016-04-24 10:48:52 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-04-24 10:48:52 +0545 |
commit | 34446ef79a45b476d783e36a480cdf41226de9d4 (patch) | |
tree | ae101970dbfd0f993dbc5fd7d6958f00ad81d2c2 /src | |
parent | 44ffb6271eae919e05a36a6937616cdaa5ee5d51 (diff) | |
download | pfsense-34446ef79a45b476d783e36a480cdf41226de9d4.zip pfsense-34446ef79a45b476d783e36a480cdf41226de9d4.tar.gz |
Fix #6244 Put back byte counts on Status Interfaces
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/status_interfaces.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/usr/local/www/status_interfaces.php b/src/usr/local/www/status_interfaces.php index 5e3cd8b..5131c54 100644 --- a/src/usr/local/www/status_interfaces.php +++ b/src/usr/local/www/status_interfaces.php @@ -176,9 +176,12 @@ foreach ($ifdescrs as $ifdescr => $ifname): showDef($ifinfo['bssid'], gettext("BSSID"), $ifinfo['bssid']); showDef($ifinfo['rate'], gettext("Rate"), $ifinfo['rate']); showDef($ifinfo['rssi'], gettext("RSSI"), $ifinfo['rssi']); - showDef(true, gettext("In/out packets"), $ifinfo['inpkts'] . '/' . $ifinfo['outpkts']); - showDef(true, gettext("In/out packets (pass)"), $ifinfo['inpktspass'] . "/" . $ifinfo['outpktspass']); - showDef(true, gettext("In/out packets (block)"), $ifinfo['inpktsblock'] . "/" . $ifinfo['outpktsblock']); + showDef(true, gettext("In/out packets"), + $ifinfo['inpkts'] . '/' . $ifinfo['outpkts'] . " (" . format_bytes($ifinfo['inbytes']) . "/" . format_bytes($ifinfo['outbytes']) . ")"); + showDef(true, gettext("In/out packets (pass)"), + $ifinfo['inpktspass'] . '/' . $ifinfo['outpktspass'] . " (" . format_bytes($ifinfo['inbytespass']) . "/" . format_bytes($ifinfo['outbytespass']) . ")"); + showDef(true, gettext("In/out packets (block)"), + $ifinfo['inpktsblock'] . '/' . $ifinfo['outpktsblock'] . " (" . format_bytes($ifinfo['inbytesblock']) . "/" . format_bytes($ifinfo['outbytesblock']) . ")"); showDef(isset($ifinfo['inerrs']), gettext("In/out errors"), $ifinfo['inerrs'] . "/" . $ifinfo['outerrs']); showDef(isset($ifinfo['collisions']), gettext("Collisions"), $ifinfo['collisions']); } // e-o-if ($ifinfo['status'] != "down") |