X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdelivery.php;h=e5ca0946b34db2de8533024a398daf2d60e5117e;hb=c0bd7a866d7dc0dc0ebc1e82226add912e39cffa;hp=021ceb9968a8496e738685021af242f60102aaa4;hpb=909bca90e872be898c36aadac175b93badce5460;p=friendica.git diff --git a/include/delivery.php b/include/delivery.php index 021ceb9968..e5ca0946b3 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -57,17 +57,8 @@ function delivery_run(&$argv, &$argc){ continue; } - $maxsysload = intval(get_config('system','maxloadavg')); - if($maxsysload < 1) - $maxsysload = 50; - - $load = current_load(); - if($load) { - if(intval($load) > $maxsysload) { - logger('system: load ' . $load . ' too high. Delivery deferred to next queue run.'); - return; - } - } + if (App::maxload_reached()) + return; // It's ours to deliver. Remove it from the queue.