Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Smirnov <72158444+sandrew-uj@users.noreply.github.com>2026-04-19 22:37:34 +0300
committerGitHub <noreply@github.com>2026-04-19 22:37:34 +0300
commite986a133f80b6b1fb231887806f4853edd540d7b (patch)
treee1ef901abe2137a4cbe0d16596dc8cc820f8d903 /web/web.go
parent7466916e0206d55826d74f37c251bb5e40182c00 (diff)
Add new hourly reset traffic (#3966)
* Add new hourly reset traffic * fix
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/web.go b/web/web.go
index 462e88a0..158bc048 100644
--- a/web/web.go
+++ b/web/web.go
@@ -327,6 +327,8 @@ func (s *Server) startTask() {
s.cron.AddJob("@daily", job.NewClearLogsJob())
// Inbound traffic reset jobs
+ // Run every hour
+ s.cron.AddJob("@hourly", job.NewPeriodicTrafficResetJob("hourly"))
// Run once a day, midnight
s.cron.AddJob("@daily", job.NewPeriodicTrafficResetJob("daily"))
// Run once a week, midnight between Sat/Sun