优化 agent 信息上报与 ARM 安装面板的错误提示

This commit is contained in:
naiba
2021-06-30 18:15:53 +08:00
parent 92ecb33901
commit 8d0e269b73
9 changed files with 23 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ func (r *AlertRule) Check(points [][]interface{}) (int, bool) {
for i := 0; i < len(r.Rules); i++ {
total := 0.0
fail := 0.0
num := int(r.Rules[i].Duration / 2) // SnapshotDelay
num := int(r.Rules[i].Duration)
if num > max {
max = num
}