mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
More fix
This commit is contained in:
parent
6f8963bdcd
commit
bd6e3901a6
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue