summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-10 18:04:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-10 18:04:47 +0000
commitaa8f994799fe474966cb4a121d905079cc6bb113 (patch)
treec45fa1c4877543d0d63ed986334e00a69f3be2ae /usr/local/www/status_interfaces.php
parent5f7bb7970b8a37c069d5ab7238f8a6f4962fca5a (diff)
downloadpfsense-aa8f994799fe474966cb4a121d905079cc6bb113.zip
pfsense-aa8f994799fe474966cb4a121d905079cc6bb113.tar.gz
If we cannot deterimine interrupts a second for an interface, do not recycle last known values.
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-xusr/local/www/status_interfaces.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php
index 48b4198..ec2e148 100755
--- a/usr/local/www/status_interfaces.php
+++ b/usr/local/www/status_interfaces.php
@@ -407,6 +407,9 @@ include("head.inc");
<?php if(file_exists("/usr/bin/vmstat")): ?>
<?php
+ $real_interface = "";
+ $interrupt_total = "";
+ $interrupt_sec = "";
$real_interface = convert_friendly_interface_to_real_interface_name($ifname);
$interrupt_total = `vmstat -i | grep $real_interface | awk '{ print $3 }'`;
$interrupt_sec = `vmstat -i | grep $real_interface | awk '{ print $4 }'`;
OpenPOWER on IntegriCloud