feat: 统计页支持一年时段和按日趋势

在线人数在新的有效访问后尽快刷新,历史查询保留一年并画出每日连接数。
This commit is contained in:
nixevol
2026-09-28 11:08:28 +08:00
parent 28170a7fe2
commit fe24a88bac
12 changed files with 358 additions and 36 deletions
+3 -2
View File
@@ -9,9 +9,10 @@ import (
)
const (
retainDuration = 72 * time.Hour
retainDuration = 365 * 24 * time.Hour
flushEvery = 10 * time.Second
onlineRefreshEvery = 30 * time.Second
onlineRefreshEvery = 15 * time.Second
onlineDebounce = 200 * time.Millisecond
cleanupEvery = time.Hour
summaryEvery = 10 * time.Minute
rangeSlack = 5 * time.Minute