summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-21 21:08:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-21 21:08:11 +0000
commit12bade7c3fe038f0ab8fccf3d7ceba61c322b7d6 (patch)
tree08b42d2d55ee286e9ba05fdc5c1746d77ac58335 /usr/local/www/status_interfaces.php
parent6f7fb5c9500fb8974ae3acb3203543f67f9161b9 (diff)
downloadpfsense-12bade7c3fe038f0ab8fccf3d7ceba61c322b7d6.zip
pfsense-12bade7c3fe038f0ab8fccf3d7ceba61c322b7d6.tar.gz
deal with uhci edge case
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-xusr/local/www/status_interfaces.php4
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";
OpenPOWER on IntegriCloud