缩短各项统计清理时间

This commit is contained in:
刘祥超
2021-12-08 10:30:14 +08:00
parent 1b8600e04d
commit 63316b6b23
4 changed files with 4 additions and 4 deletions

View File

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