Deactivating isMinMemoryReached()

This commit is contained in:
Philipp 2021-11-01 13:58:36 +01:00
parent 62bacbb833
commit da86581bf2
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

@ -106,6 +106,12 @@ class System
*/ */
public function isMinMemoryReached(): bool public function isMinMemoryReached(): bool
{ {
// Deactivated, needs more investigating if this check really makes sense
return false;
/*
* Commented out to suppress static analyzer issues
*
$min_memory = $this->config->get('system', 'min_memory', 0); $min_memory = $this->config->get('system', 'min_memory', 0);
if ($min_memory == 0) { if ($min_memory == 0) {
return false; return false;
@ -141,6 +147,7 @@ class System
} }
return $reached; return $reached;
*/
} }
/** /**