mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
fixed build
This commit is contained in:
parent
668df85e3f
commit
14577daae3
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user