]> git.mxchange.org Git - friendica.git/blobdiff - include/poller.php
Added comment
[friendica.git] / include / poller.php
index 755862eb6bf32d51247967890910d951aed4d26a..7ffd47aa68e653635f5460dbaa6ff454dfbdeb9f 100644 (file)
@@ -29,17 +29,8 @@ function poller_run(&$argv, &$argc){
        if (poller_max_connections_reached())
                return;
 
-       $load = current_load();
-       if($load) {
-               $maxsysload = intval(get_config('system','maxloadavg'));
-               if($maxsysload < 1)
-                       $maxsysload = 50;
-
-               if(intval($load) > $maxsysload) {
-                       logger('system: load ' . $load . ' too high. poller deferred to next scheduled run.');
-                       return;
-               }
-       }
+       if (App::maxload_reached())
+               return;
 
        // Checking the number of workers
        if (poller_too_much_workers(1)) {