[feat] delayStart and autoReset #718

This commit is contained in:
Alireza Ahmadi
2026-03-08 23:18:08 +01:00
parent f4e08c8ae3
commit 6ba547331e
4 changed files with 115 additions and 12 deletions
+2 -2
View File
@@ -268,8 +268,8 @@ func (s *ServerService) GetDatabaseInfo() map[string]int64 {
db.Model(&model.Outbound{}).Count(&outboundsCount)
db.Model(&model.Service{}).Count(&servicesCount)
db.Model(&model.Endpoint{}).Count(&endpointsCount)
db.Model(&model.Client{}).Select("COALESCE(SUM(up),0)").Scan(&clientUp)
db.Model(&model.Client{}).Select("COALESCE(SUM(down),0)").Scan(&clientDown)
db.Model(&model.Client{}).Select("COALESCE(SUM(up+total_up),0)").Scan(&clientUp)
db.Model(&model.Client{}).Select("COALESCE(SUM(down+total_down),0)").Scan(&clientDown)
info["clients"] = clientsCount
info["inbounds"] = inboundsCount