Skip to content

Commit

Permalink
daily clear logs #952
Browse files Browse the repository at this point in the history
  • Loading branch information
hamid-gh98 committed Aug 24, 2023
1 parent 8a1d647 commit 4a6bd23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a6bd23

Please sign in to comment.