From 3f0307054a6215e33f71764c9b40e8ed002445c0 Mon Sep 17 00:00:00 2001 From: Hossin Asaadi Date: Sat, 5 Nov 2022 14:37:49 -0400 Subject: [PATCH] lower schedule time --- web/job/check_clinet_ip_job.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/job/check_clinet_ip_job.go b/web/job/check_clinet_ip_job.go index 5eb4dbdf..b6bd3c8b 100644 --- a/web/job/check_clinet_ip_job.go +++ b/web/job/check_clinet_ip_job.go @@ -105,8 +105,8 @@ func processLogFile() { // check if inbound connection is more than limited ip and drop connection LimitDevice := func() { LimitDevice() } - stop := schedule(LimitDevice, 100 *time.Millisecond) - time.Sleep(11 * time.Second) + stop := schedule(LimitDevice, 10 *time.Millisecond) + time.Sleep(15 * time.Second) stop <- true }