Update Worker.php

This commit is contained in:
miqrogroove 2018-06-19 18:55:55 -04:00 committed by GitHub
parent 7e4d7b9aac
commit 0dbddb240c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -635,9 +635,7 @@ class Worker
$target = $slope * ($maxqueues - 1);
$queues = intval(ceil($target));
}
$exponent = 3;
$slope = $maxqueues / pow($maxsysload, $exponent);
$queues = ceil($slope * pow(max(0, $maxsysload - $load), $exponent));
$processlist = '';
if (Config::get('system', 'worker_debug')) {