This commit is contained in:
UlricQin 2022-01-29 11:08:32 +08:00
parent b482c7a076
commit 2e63993b7f
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ func (r RuleEval) recoverRule(alertingKeys map[string]struct{}, now int64) {
}
// 如果配置了留观时长,就不能立马恢复了
if r.rule.RecoverDuration > 0 && now-event.LastEvalTime > r.rule.RecoverDuration {
if r.rule.RecoverDuration > 0 && now-event.LastEvalTime <= r.rule.RecoverDuration {
continue
}