mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added a check to memory tracking
This commit is contained in:
parent
e58ef1f62c
commit
3061b8eb3c
1 changed files with 4 additions and 1 deletions
|
|
@ -115,7 +115,10 @@ class PocketMinecraftServer{
|
|||
|
||||
public function checkMemory(){
|
||||
$info = $this->debugInfo();
|
||||
$this->memoryStats[] = $info["memory_usage"].",".$info["players"].",".$info["entities"];
|
||||
$data = $info["memory_usage"].",".$info["players"].",".$info["entities"];
|
||||
if($this->memoryStats[count($this->memoryStats) - 1] !== $data){
|
||||
$this->memoryStats[] = $data;
|
||||
}
|
||||
}
|
||||
|
||||
public function startDatabase(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue