mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #1750 from laf/issue-1729
Also use ifHighSpeed if ifSpeed is 0 and ifHighSpeed exists
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user