fixed check delay

This commit is contained in:
somebodywashere 2023-06-10 10:21:12 +00:00
parent eb1bf1148e
commit 411cf30a98
2 changed files with 1 additions and 3 deletions

View file

@ -12,7 +12,6 @@ import (
"sort"
"strings"
"time"
)
type CheckClientIpJob struct {
@ -105,7 +104,6 @@ func processLogFile() {
checkError(err)
}
}
time.Sleep(30 * time.Second)
}
func GetAccessLogPath() string {

View file

@ -251,7 +251,7 @@ func (s *Server) startTask() {
s.cron.AddJob("@every 30s", job.NewCheckInboundJob())
// check client ips from log file every 10 sec
s.cron.AddJob("@every 10s", job.NewCheckClientIpJob())
s.cron.AddJob("@every 30s", job.NewCheckClientIpJob())
// Make a traffic condition every day, 8:30
var entry cron.EntryID