diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-09-16 14:41:05 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-09-16 14:41:05 +0300 |
| commit | 1de7accd7cfea4aa834fbcf80ff05e0f072971b4 (patch) | |
| tree | cbf359d4737c2dd8ad06d05f60ad295597cc7be4 /web/web.go | |
| parent | 76afff2a6f5bcc2fad72955f15a216d0eebacacd (diff) | |
vnext removed
Diffstat (limited to 'web/web.go')
| -rw-r--r-- | web/web.go | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -289,18 +289,13 @@ func (s *Server) startTask() { // check client ips from log file every day s.cron.AddJob("@daily", job.NewClearLogsJob()) - // Periodic traffic resets - logger.Info("Scheduling periodic traffic reset jobs") - { - // Inbound traffic reset jobs - // Run once a day, midnight - s.cron.AddJob("@daily", job.NewPeriodicTrafficResetJob("daily")) - // Run once a week, midnight between Sat/Sun - s.cron.AddJob("@weekly", job.NewPeriodicTrafficResetJob("weekly")) - // Run once a month, midnight, first of month - s.cron.AddJob("@monthly", job.NewPeriodicTrafficResetJob("monthly")) - - } + // Inbound traffic reset jobs + // Run once a day, midnight + s.cron.AddJob("@daily", job.NewPeriodicTrafficResetJob("daily")) + // Run once a week, midnight between Sat/Sun + s.cron.AddJob("@weekly", job.NewPeriodicTrafficResetJob("weekly")) + // Run once a month, midnight, first of month + s.cron.AddJob("@monthly", job.NewPeriodicTrafficResetJob("monthly")) // Make a traffic condition every day, 8:30 var entry cron.EntryID |
