From 9cde4aa1096d9161773116b9358358698c524dc9 Mon Sep 17 00:00:00 2001 From: miqrogroove Date: Wed, 20 Jun 2018 06:22:53 -0400 Subject: [PATCH] Make Load Exponent Configurable --- src/Core/Worker.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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)); -- 2.39.5