mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-08 14:36:13 +00:00
Add new hourly reset traffic (#3966)
* Add new hourly reset traffic * fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user