diff options
| author | Hamidreza <70919649+hamid-gh98@users.noreply.github.com> | 2023-08-24 16:44:51 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-24 16:44:51 +0300 |
| commit | 4a6bd238736eb246a4eaea9dbb397d79fb489835 (patch) | |
| tree | 9f02fb4b587b2164c24f6cb17822f806435e1156 /web | |
| parent | 8a1d647547e5c798b565376eeeb23b2bf2bd50cd (diff) | |
daily clear logs #952
Diffstat (limited to 'web')
| -rw-r--r-- | web/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -253,8 +253,8 @@ func (s *Server) startTask() { // check client ips from log file every 10 sec s.cron.AddJob("@every 10s", job.NewCheckClientIpJob()) - // check client ips from log file every 3 day - s.cron.AddJob("@every 3d", job.NewClearLogsJob()) + // check client ips from log file every day + s.cron.AddJob("@daily", job.NewClearLogsJob()) // Make a traffic condition every day, 8:30 var entry cron.EntryID |
