Reworked if check

This commit is contained in:
laf 2015-08-23 21:39:37 +00:00
parent a413968eb8
commit 0baa0d81e2

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') || (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 ';
$this_port['ifSpeed'] = ($this_port['ifHighSpeed'] * 1000000);
}