HoststatusQuery: Add `latency` to next_update calculation..

..and double the entire result

refs #3212
This commit is contained in:
Johannes Meyer 2019-07-18 13:17:24 +02:00
parent 5ead593fa7
commit 44f63576d1
1 changed files with 3 additions and 3 deletions

View File

@ -98,14 +98,14 @@ class HoststatusQuery extends IdoQuery
NULL
ELSE
UNIX_TIMESTAMP(hs.last_check)
+ CASE WHEN
+ (CASE WHEN
COALESCE(hs.current_state, 0) > 0 AND hs.state_type = 0
THEN
hs.retry_check_interval
ELSE
hs.normal_check_interval
END * 60 * 2
+ CEIL(hs.execution_time)
END * 60
+ CEIL(hs.execution_time) + CEIL(hs.latency)) * 2
END',
'host_no_more_notifications' => 'hs.no_more_notifications',
'host_normal_check_interval' => 'hs.normal_check_interval',