mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Update libs
This commit is contained in:
parent
0e860cc473
commit
f88b25c181
12716 changed files with 137183 additions and 39890 deletions
|
@ -43,8 +43,8 @@ final class HttpClientDataCollector extends DataCollector implements LateDataCol
|
|||
|
||||
public function lateCollect()
|
||||
{
|
||||
$this->data['request_count'] = 0;
|
||||
$this->data['error_count'] = 0;
|
||||
$this->data['request_count'] = $this->data['request_count'] ?? 0;
|
||||
$this->data['error_count'] = $this->data['error_count'] ?? 0;
|
||||
$this->data += ['clients' => []];
|
||||
|
||||
foreach ($this->clients as $name => $client) {
|
||||
|
@ -59,7 +59,8 @@ final class HttpClientDataCollector extends DataCollector implements LateDataCol
|
|||
|
||||
$this->data['clients'][$name]['traces'] = array_merge($this->data['clients'][$name]['traces'], $traces);
|
||||
$this->data['request_count'] += \count($traces);
|
||||
$this->data['error_count'] += $this->data['clients'][$name]['error_count'] += $errorCount;
|
||||
$this->data['error_count'] += $errorCount;
|
||||
$this->data['clients'][$name]['error_count'] += $errorCount;
|
||||
|
||||
$client->reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue