Merge pull request #1750 from laf/issue-1729

Also use ifHighSpeed if ifSpeed is 0 and ifHighSpeed exists
This commit is contained in:
Paul Gear
2015-08-24 07:50:55 +10:00

View File

@ -294,7 +294,7 @@ foreach ($ports as $port) {
}
// Overwrite ifSpeed with ifHighSpeed if it's over 1G
if (is_numeric($this_port['ifHighSpeed']) && $this_port['ifSpeed'] > '1000000000') {
if (is_numeric($this_port['ifHighSpeed']) && ($this_port['ifSpeed'] > '1000000000' || $this_port['ifSpeed'] == 0)) {
echo 'HighSpeed ';
$this_port['ifSpeed'] = ($this_port['ifHighSpeed'] * 1000000);
}