mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Improved manager
This commit is contained in:
parent
61828baa8f
commit
1b84340e3f
@ -125,12 +125,12 @@ class MemoryManager{
|
|||||||
if($this->lowMemory and $this->continuousTrigger){
|
if($this->lowMemory and $this->continuousTrigger){
|
||||||
if(++$this->continuousTriggerTicker >= $this->continuousTriggerRate){
|
if(++$this->continuousTriggerTicker >= $this->continuousTriggerRate){
|
||||||
$this->continuousTriggerTicker = 0;
|
$this->continuousTriggerTicker = 0;
|
||||||
$this->trigger($memory[$trigger], $this->memoryLimit, ++$this->continuousTriggerCount);
|
$this->trigger($memory[$trigger], $this->memoryLimit, $trigger > 0, ++$this->continuousTriggerCount);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$this->lowMemory = true;
|
$this->lowMemory = true;
|
||||||
$this->continuousTriggerCount = 0;
|
$this->continuousTriggerCount = 0;
|
||||||
$this->trigger($memory[$trigger], $this->memoryLimit);
|
$this->trigger($memory[$trigger], $this->memoryLimit, $trigger > 0);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$this->lowMemory = false;
|
$this->lowMemory = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user