Revision 12bade7c
Added by Scott Ullrich about 18 years ago
usr/local/www/status_interfaces.php | ||
---|---|---|
413 | 413 |
$real_interface = convert_friendly_interface_to_real_interface_name($ifname); |
414 | 414 |
$interrupt_total = `vmstat -i | grep $real_interface | awk '{ print $3 }'`; |
415 | 415 |
$interrupt_sec = `vmstat -i | grep $real_interface | awk '{ print $4 }'`; |
416 |
if(strstr($interrupt_total, "uhci")) { |
|
417 |
$interrupt_total = `vmstat -i | grep $real_interface | awk '{ print $4 }'`; |
|
418 |
$interrupt_sec = `vmstat -i | grep $real_interface | awk '{ print $5 }'`; |
|
419 |
} |
|
416 | 420 |
echo $interrupt_total . " total"; |
417 | 421 |
echo "<br/>"; |
418 | 422 |
echo $interrupt_sec . " rate"; |
Also available in: Unified diff
deal with uhci edge case