fixed build

This commit is contained in:
Dylan K. Taylor 2021-08-20 23:52:34 +01:00
parent 668df85e3f
commit 14577daae3
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ final class BandwidthStatsTracker{
/** @var int */
private $totalBytes = 0;
/** @phpstan-param positive-int $historySize */
public function __construct(int $historySize){
$this->history = array_fill(0, $historySize, 0);
}

View File

@ -31,6 +31,7 @@ final class BidirectionalBandwidthStatsTracker{
/** @var BandwidthStatsTracker */
private $receive;
/** @phpstan-param positive-int $historySize */
public function __construct(int $historySize){
$this->send = new BandwidthStatsTracker($historySize);
$this->receive = new BandwidthStatsTracker($historySize);