缩短各项统计清理时间

This commit is contained in:
GoEdgeLab
2021-12-08 10:30:14 +08:00
parent 0293a4f5b6
commit 189c66705e
4 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ func init() {
var ticker = time.NewTicker(time.Duration(rands.Int(24, 48)) * time.Hour)
go func() {
for range ticker.C {
err := SharedNSRecordHourlyStatDAO.Clean(nil, 60) // 只保留60
err := SharedNSRecordHourlyStatDAO.Clean(nil, 30) // 只保留N
if err != nil {
remotelogs.Error("NodeClusterTrafficDailyStatDAO", "clean expired data failed: "+err.Error())
}