diff --git a/checker.php b/checker.php index 5ae2ff9..a266321 100644 --- a/checker.php +++ b/checker.php @@ -42,7 +42,7 @@ if ($bob->setnick()) { /* Start async checker tasks */ Loop::run(function () use (&$results, $hosts, $options) { - $pool = new DefaultPool(64); + $pool = new DefaultPool($options['checkthreads']); $coroutines = []; diff --git a/config.php.dist b/config.php.dist index 81d74cd..a88a19b 100644 --- a/config.php.dist +++ b/config.php.dist @@ -38,4 +38,6 @@ $options = [ 'hidedays' => 3, // days before domain will be marked as hidden in period before disabling 'fullhour' => 8, // make hosts full-check at that hour (0-23). Usage of out-of-range value or at other hours, checker will validate only enabled domains. + + 'checkthreads' => 64, // checker threads amount ];