mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed Memory Stats collection
This commit is contained in:
parent
73c155090c
commit
152ebcbc17
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue