Improved manager

This commit is contained in:
Shoghi Cervantes 2015-04-18 22:35:00 +02:00
parent 61828baa8f
commit 1b84340e3f
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -125,12 +125,12 @@ class MemoryManager{
if($this->lowMemory and $this->continuousTrigger){
if(++$this->continuousTriggerTicker >= $this->continuousTriggerRate){
$this->continuousTriggerTicker = 0;
$this->trigger($memory[$trigger], $this->memoryLimit, ++$this->continuousTriggerCount);
$this->trigger($memory[$trigger], $this->memoryLimit, $trigger > 0, ++$this->continuousTriggerCount);
}
}else{
$this->lowMemory = true;
$this->continuousTriggerCount = 0;
$this->trigger($memory[$trigger], $this->memoryLimit);
$this->trigger($memory[$trigger], $this->memoryLimit, $trigger > 0);
}
}else{
$this->lowMemory = false;