From: miqrogroove Date: Wed, 20 Jun 2018 10:22:53 +0000 (-0400) Subject: Make Load Exponent Configurable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9cde4aa1096d9161773116b9358358698c524dc9;p=friendica.git Make Load Exponent Configurable --- diff --git a/src/Core/Worker.php b/src/Core/Worker.php index bafe371130..3df20c5145 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -625,12 +625,7 @@ class Worker if ($load) { $maxsysload = intval(Config::get("system", "maxloadavg", 50)); - if (Config::get('system', 'worker_linear_load', false)) { - $exponent = 1; - } else { - $exponent = 3; - } - + $exponent = intval(Config::get('system', 'worker_load_exponent', 3)); $slope = pow(max(0, $maxsysload - $load) / $maxsysload, $exponent); $queues = intval(ceil($slope * $maxqueues));