mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
fixed build
This commit is contained in:
parent
668df85e3f
commit
14577daae3
@ -39,6 +39,7 @@ final class BandwidthStatsTracker{
|
|||||||
/** @var int */
|
/** @var int */
|
||||||
private $totalBytes = 0;
|
private $totalBytes = 0;
|
||||||
|
|
||||||
|
/** @phpstan-param positive-int $historySize */
|
||||||
public function __construct(int $historySize){
|
public function __construct(int $historySize){
|
||||||
$this->history = array_fill(0, $historySize, 0);
|
$this->history = array_fill(0, $historySize, 0);
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@ final class BidirectionalBandwidthStatsTracker{
|
|||||||
/** @var BandwidthStatsTracker */
|
/** @var BandwidthStatsTracker */
|
||||||
private $receive;
|
private $receive;
|
||||||
|
|
||||||
|
/** @phpstan-param positive-int $historySize */
|
||||||
public function __construct(int $historySize){
|
public function __construct(int $historySize){
|
||||||
$this->send = new BandwidthStatsTracker($historySize);
|
$this->send = new BandwidthStatsTracker($historySize);
|
||||||
$this->receive = new BandwidthStatsTracker($historySize);
|
$this->receive = new BandwidthStatsTracker($historySize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user