mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
🐛 fix(alertData): 旧数据保留尾部而不是头部
This commit is contained in:
1 parent
64e4a3defe
commit
272ed5d00c
1 file changed
+2
-2
@@ -150,8 +150,8 @@ func checkStatus() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 清理旧数据
|
// 清理旧数据
|
||||||
if max > 0 && max <= len(alertsStore[alerts[j].ID][server.ID]) {
|
if max > 0 && max < len(alertsStore[alerts[j].ID][server.ID]) {
|
||||||
alertsStore[alerts[j].ID][server.ID] = alertsStore[alerts[j].ID][server.ID][max:]
|
alertsStore[alerts[j].ID][server.ID] = alertsStore[alerts[j].ID][server.ID][len(alertsStore[alerts[j].ID][server.ID])-max:]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user