ServicestatusQuery: Add `latency` to next_update calculation..

..and double the entire result

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

View File

@ -204,14 +204,14 @@ class ServicestatusQuery extends IdoQuery
NULL
ELSE
UNIX_TIMESTAMP(ss.last_check)
+ CASE WHEN
+ (CASE WHEN
COALESCE(ss.current_state, 0) > 0 AND ss.state_type = 0
THEN
ss.retry_check_interval
ELSE
ss.normal_check_interval
END * 60 * 2
+ CEIL(ss.execution_time)
END * 60
+ CEIL(ss.execution_time) + CEIL(ss.latency)) * 2
END',
'service_no_more_notifications' => 'ss.no_more_notifications',
'service_normal_check_interval' => 'ss.normal_check_interval',