From b600761ed8035499bf42b19b093e634102453e8a Mon Sep 17 00:00:00 2001 From: M09Ic Date: Wed, 9 Nov 2022 17:28:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcheck=E6=AC=A1=E6=95=B0?= =?UTF-8?q?=E8=BF=87=E5=A4=9A=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pool.go b/internal/pool.go index 533e00d..ef97e33 100644 --- a/internal/pool.go +++ b/internal/pool.go @@ -116,7 +116,7 @@ func NewPool(ctx context.Context, config *pkg.Config, outputCh chan *baseline) ( if pool.reqCount%pool.checkPeriod == 0 { go pool.check() - } else if pool.reqCount%pool.errPeriod == 0 { + } else if pool.failedCount%pool.errPeriod == 0 { go pool.check() } }