]> git.mxchange.org Git - friendica.git/blobdiff - include/delivery.php
Some small addition to the OStatus part. Better check if we follow the actor.
[friendica.git] / include / delivery.php
index 021ceb9968a8496e738685021af242f60102aaa4..e5ca0946b34db2de8533024a398daf2d60e5117e 100644 (file)
@@ -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.