2 use Friendica\Core\Config;
4 function pumpio_sync_run(&$argv, &$argc) {
7 require_once("addon/pumpio/pumpio.php");
9 if (function_exists('sys_getloadavg')) {
10 $load = sys_getloadavg();
11 if (intval($load[0]) > Config::get('system', 'maxloadavg', 50)) {
12 logger('system: load ' . $load[0] . ' too high. Pumpio sync deferred to next scheduled run.');