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