ServicestatusQuery: Add `latency` to next_update calculation..
..and double the entire result refs #3212
This commit is contained in:
parent
44f63576d1
commit
f32dac7a70
|
@ -204,14 +204,14 @@ class ServicestatusQuery extends IdoQuery
|
||||||
NULL
|
NULL
|
||||||
ELSE
|
ELSE
|
||||||
UNIX_TIMESTAMP(ss.last_check)
|
UNIX_TIMESTAMP(ss.last_check)
|
||||||
+ CASE WHEN
|
+ (CASE WHEN
|
||||||
COALESCE(ss.current_state, 0) > 0 AND ss.state_type = 0
|
COALESCE(ss.current_state, 0) > 0 AND ss.state_type = 0
|
||||||
THEN
|
THEN
|
||||||
ss.retry_check_interval
|
ss.retry_check_interval
|
||||||
ELSE
|
ELSE
|
||||||
ss.normal_check_interval
|
ss.normal_check_interval
|
||||||
END * 60 * 2
|
END * 60
|
||||||
+ CEIL(ss.execution_time)
|
+ CEIL(ss.execution_time) + CEIL(ss.latency)) * 2
|
||||||
END',
|
END',
|
||||||
'service_no_more_notifications' => 'ss.no_more_notifications',
|
'service_no_more_notifications' => 'ss.no_more_notifications',
|
||||||
'service_normal_check_interval' => 'ss.normal_check_interval',
|
'service_normal_check_interval' => 'ss.normal_check_interval',
|
||||||
|
|
Loading…
Reference in New Issue