This commit is contained in:
Shoghi Cervantes 2013-06-04 11:01:59 +02:00
parent 6f8963bdcd
commit bd6e3901a6

View File

@ -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();