mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Fixed Memory Stats collection
This commit is contained in:
parent
73c155090c
commit
152ebcbc17
@ -119,7 +119,7 @@ class PocketMinecraftServer{
|
||||
$info = $this->debugInfo();
|
||||
$data = $info["memory_usage"].",".$info["players"].",".$info["entities"];
|
||||
$i = count($this->memoryStats) - 1;
|
||||
if($i > -1 and $this->memoryStats[$i] !== $data){
|
||||
if($i === -1 or $this->memoryStats[$i] !== $data){
|
||||
$this->memoryStats[] = $data;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user