mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Added a check to memory tracking
This commit is contained in:
@@ -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(){
|
||||
|
Reference in New Issue
Block a user