mirror of
https://github.com/librenms/librenms.git
synced 2024-09-25 04:19:07 +00:00
fix r1942 bug, patch by Paul Gear
git-svn-id: http://www.observium.org/svn/observer/trunk@1951 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
parent
2b2d8cae0d
commit
b7372e0dbd
@ -53,8 +53,8 @@ while ($port = mysql_fetch_array($query))
|
||||
# Mark interfaces which are OperDown (but not AdminDown) yet not ignored or disabled, or up yet ignored or disabled
|
||||
# - as to draw the attention to a possible problem.
|
||||
$isportbad = ($port['ifOperStatus'] == 'down' && $port['ifAdminStatus'] != 'down') ? 1 : 0;
|
||||
$dowecare = ($port['ignore'] == 0 && $port['disabled'] == 0) ? 1 : 0;
|
||||
$outofsync = ($isportbad && $dowecare) ? "class=red" : "";
|
||||
$dowecare = ($port['ignore'] == 0 && $port['disabled'] == 0) ? $isportbad : !$isportbad;
|
||||
$outofsync = $dowecare ? "class=red" : "";
|
||||
|
||||
echo("<td align=right><span ".$outofsync.">". $port['ifOperStatus']."</span></td>");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user