summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-10 18:04:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-10 18:04:54 +0000
commit7dddd075bec5c2e15a3608a27fa1a5dc31118109 (patch)
treec45fa1c4877543d0d63ed986334e00a69f3be2ae /usr
parent2fb4c391ecd99f7560c05a0b5523484bdcfc975d (diff)
downloadpfsense-7dddd075bec5c2e15a3608a27fa1a5dc31118109.zip
pfsense-7dddd075bec5c2e15a3608a27fa1a5dc31118109.tar.gz
If we cannot deterimine interrupts a second for an interface, do not recycle last known values.
Diffstat (limited to 'usr')
-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