diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-03-21 21:08:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-03-21 21:08:11 +0000 |
commit | 12bade7c3fe038f0ab8fccf3d7ceba61c322b7d6 (patch) | |
tree | 08b42d2d55ee286e9ba05fdc5c1746d77ac58335 /usr/local | |
parent | 6f7fb5c9500fb8974ae3acb3203543f67f9161b9 (diff) | |
download | pfsense-12bade7c3fe038f0ab8fccf3d7ceba61c322b7d6.zip pfsense-12bade7c3fe038f0ab8fccf3d7ceba61c322b7d6.tar.gz |
deal with uhci edge case
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_interfaces.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index 7724496..2a53f0b 100755 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -413,6 +413,10 @@ include("head.inc"); $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 }'`; + if(strstr($interrupt_total, "uhci")) { + $interrupt_total = `vmstat -i | grep $real_interface | awk '{ print $4 }'`; + $interrupt_sec = `vmstat -i | grep $real_interface | awk '{ print $5 }'`; + } echo $interrupt_total . " total"; echo "<br/>"; echo $interrupt_sec . " rate"; |