mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
More fix
This commit is contained in:
parent
6f8963bdcd
commit
bd6e3901a6
@ -737,6 +737,7 @@ class Player{
|
|||||||
$this->packetStats = array(0, 0);
|
$this->packetStats = array(0, 0);
|
||||||
array_shift($this->bandwidthStats);
|
array_shift($this->bandwidthStats);
|
||||||
$this->bandwidthStats[] = $this->bandwidthRaw / max(0.00001, microtime(true) - $this->lastMeasure);
|
$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->lagStat = array_sum($this->lag) / max(1, count($this->lag));
|
||||||
$this->lag = array();
|
$this->lag = array();
|
||||||
$this->sendBuffer();
|
$this->sendBuffer();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user