Browse Source

fix

tags/v5.8.0
UlricQin 4 years ago
parent
commit
2e63993b7f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/server/engine/worker.go

+ 1
- 1
src/server/engine/worker.go 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
}



Loading…
Cancel
Save