diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-15 20:23:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-15 20:23:56 +0000 |
commit | 01385b0c2938803145fa4e598351dca872f6a951 (patch) | |
tree | 3ce20cc68e7bf93d2ae4d5fffcd329a4dcd59dd9 /usr | |
parent | fe94b80bc78116222045b46e5b955e581202f6de (diff) | |
download | pfsense-01385b0c2938803145fa4e598351dca872f6a951.zip pfsense-01385b0c2938803145fa4e598351dca872f6a951.tar.gz |
* Use 64 bit counters from PF for interfafe stats
* Add block packets / traffic count, too
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_interfaces.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index 74d2f31..f9894d3 100755 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -184,12 +184,24 @@ include("head.inc"); </td> </tr><?php endif; ?> <tr> - <td width="22%" class="vncellt">In/out packets</td> + <td width="22%" class="vncellt">In/out packets (pass)</td> <td width="78%" class="listr"> - <?=htmlspecialchars($ifinfo['inpkts'] . "/" . $ifinfo['outpkts'] . " (" . - format_bytes($ifinfo['inbytes']) . "/" . format_bytes($ifinfo['outbytes']) . ")");?> + <?php + echo htmlspecialchars($ifinfo['inpkts'] . "/" . $ifinfo['outpkts'] . " ("); + echo htmlspecialchars(format_bytes($ifinfo['inbytes']) . "/" . format_bytes($ifinfo['outbytes']) . ")"); + ?> + </td> + </tr> + <tr> + <td width="22%" class="vncellt">In/out packets (block)</td> + <td width="78%" class="listr"> + <?php + echo htmlspecialchars($ifinfo['inpktsblock'] . "/" . $ifinfo['outpktsblock'] . " ("); + echo htmlspecialchars(format_bytes($ifinfo['inbytesblock']) . "/" . format_bytes($ifinfo['outbytesblock']) . ")"); + ?> </td> </tr><?php if (isset($ifinfo['inerrs'])): ?> + <tr> <td width="22%" class="vncellt">In/out errors</td> <td width="78%" class="listr"> |