This commit is contained in:
2021-07-05 16:31:35 +08:00
parent 2ea7289c43
commit 3345ff697b
2 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -92,7 +92,8 @@ class ClientsPool extends Component
$this->flush($channel, $min);
}
$num[$key] += $channel->length();
if (str_starts_with($key, 'Mysql') && (Snowflake::isWorker() || Snowflake::isTask())) {
if (str_starts_with($key, 'Mysql') && (Snowflake::isWorker() || Snowflake::isTask())
&& $channel->length() > 0) {
$this->debug('Worker #' . env('worker') . ' use client -> ' . $key . ':' . $total);
}
$total += $channel->length();