mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 13:40:06 +00:00
🐛 fix(alertData): 旧数据保留尾部而不是头部
This commit is contained in:
@@ -150,8 +150,8 @@ func checkStatus() {
|
||||
}
|
||||
}
|
||||
// 清理旧数据
|
||||
if max > 0 && max <= len(alertsStore[alerts[j].ID][server.ID]) {
|
||||
alertsStore[alerts[j].ID][server.ID] = alertsStore[alerts[j].ID][server.ID][max:]
|
||||
if max > 0 && max < len(alertsStore[alerts[j].ID][server.ID]) {
|
||||
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