Show DOWN hosts before UNREACHABLE when sorting by host_severity

refs #2034
This commit is contained in:
Eric Lippmann 2017-07-27 16:08:29 +02:00
parent 7c88ee70d2
commit adc2f90f74
1 changed files with 2 additions and 2 deletions

View File

@ -134,8 +134,8 @@ class HoststatusQuery extends IdoQuery
END
ELSE
CASE WHEN hs.has_been_checked = 0 OR hs.has_been_checked IS NULL THEN 16
WHEN hs.current_state = 1 THEN 32
WHEN hs.current_state = 2 THEN 64
WHEN hs.current_state = 1 THEN 64
WHEN hs.current_state = 2 THEN 32
ELSE 256
END
+