mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
fix service (#1015)
This commit is contained in:
@@ -97,7 +97,7 @@ func (r *AlertRule) Check(points [][]bool) (int, bool) {
|
||||
if hasPassedRule = boundCheck(len(points), duration, hasPassedRule); hasPassedRule {
|
||||
continue
|
||||
}
|
||||
for timeTick := len(points); timeTick >= len(points)-duration; timeTick-- {
|
||||
for timeTick := len(points); timeTick > len(points)-duration; timeTick-- {
|
||||
fail++
|
||||
if points[timeTick][ruleIndex] {
|
||||
hasPassedRule = true
|
||||
|
||||
Reference in New Issue
Block a user