Also use ifHighSpeed if ifSpeed is 0 and ifHighSpeed exists

This commit is contained in:
laf
2015-08-23 20:06:28 +00:00
parent a9b08fbaa0
commit a413968eb8

View File

@@ -289,7 +289,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') || (is_numeric($this_port['ifHighSpeed']) && $this_port['ifSpeed'] == 0)) {
echo 'HighSpeed ';
$this_port['ifSpeed'] = ($this_port['ifHighSpeed'] * 1000000);
}