mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
More fix
This commit is contained in:
@@ -737,6 +737,7 @@ class Player{
|
||||
$this->packetStats = array(0, 0);
|
||||
array_shift($this->bandwidthStats);
|
||||
$this->bandwidthStats[] = $this->bandwidthRaw / max(0.00001, microtime(true) - $this->lastMeasure);
|
||||
$this->bandwidthRaw = 0;
|
||||
$this->lagStat = array_sum($this->lag) / max(1, count($this->lag));
|
||||
$this->lag = array();
|
||||
$this->sendBuffer();
|
||||
|
Reference in New Issue
Block a user