diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-10 18:04:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-10 18:04:54 +0000 |
commit | 7dddd075bec5c2e15a3608a27fa1a5dc31118109 (patch) | |
tree | c45fa1c4877543d0d63ed986334e00a69f3be2ae /usr | |
parent | 2fb4c391ecd99f7560c05a0b5523484bdcfc975d (diff) | |
download | pfsense-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-x | usr/local/www/status_interfaces.php | 3 |
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 }'`; |