summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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