From 3a9711b6ab5d2e38e746f026009c6ee98242e536 Mon Sep 17 00:00:00 2001 From: xcg Date: Thu, 23 May 2019 10:33:50 +0800 Subject: [PATCH] fix bug --- src/Pool/AbstractPool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pool/AbstractPool.php b/src/Pool/AbstractPool.php index 04d8215..2daa5ac 100644 --- a/src/Pool/AbstractPool.php +++ b/src/Pool/AbstractPool.php @@ -182,7 +182,7 @@ public function intervalCheck() public function keepMin(?int $num = null): int { if($this->createdNum < $num){ - $left = $num = $this->createdNum; + $left = $num - $this->createdNum; while ($left > 0 ){ $this->initObject(); $left--;