mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Reworked if check
This commit is contained in:
@ -289,7 +289,7 @@ foreach ($ports as $port) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Overwrite ifSpeed with ifHighSpeed if it's over 1G
|
// Overwrite ifSpeed with ifHighSpeed if it's over 1G
|
||||||
if ((is_numeric($this_port['ifHighSpeed']) && $this_port['ifSpeed'] > '1000000000') || (is_numeric($this_port['ifHighSpeed']) && $this_port['ifSpeed'] == 0)) {
|
if (is_numeric($this_port['ifHighSpeed']) && ($this_port['ifSpeed'] > '1000000000' || $this_port['ifSpeed'] == 0)) {
|
||||||
echo 'HighSpeed ';
|
echo 'HighSpeed ';
|
||||||
$this_port['ifSpeed'] = ($this_port['ifHighSpeed'] * 1000000);
|
$this_port['ifSpeed'] = ($this_port['ifHighSpeed'] * 1000000);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user