[Messenger] Use real memory usage for --memory-limit
This commit is contained in:
parent
0f8382f8af
commit
4bd85343e6
@ -33,7 +33,7 @@ class StopWhenMemoryUsageIsExceededWorker implements WorkerInterface
|
||||
$this->memoryLimit = $memoryLimit;
|
||||
$this->logger = $logger;
|
||||
$this->memoryResolver = $memoryResolver ?: function () {
|
||||
return \memory_get_usage();
|
||||
return \memory_get_usage(true);
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user