mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-26 21:03:45 +00:00
Added a check to memory tracking
This commit is contained in:
parent
e58ef1f62c
commit
3061b8eb3c
@ -115,7 +115,10 @@ class PocketMinecraftServer{
|
|||||||
|
|
||||||
public function checkMemory(){
|
public function checkMemory(){
|
||||||
$info = $this->debugInfo();
|
$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(){
|
public function startDatabase(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user