X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=pumpio%2Fpumpio_sync.php;h=1bdbbb9d42e9dab4fb0179009fce18de9a7c5a19;hb=65e4726718a10e1d15782d299b348add76377751;hp=de794ad6a97a89140fc059aa1afe498aacc46330;hpb=5535fa9fd2898571b702dc6c343de68d3d813f6c;p=friendica-addons.git diff --git a/pumpio/pumpio_sync.php b/pumpio/pumpio_sync.php index de794ad6..1bdbbb9d 100644 --- a/pumpio/pumpio_sync.php +++ b/pumpio/pumpio_sync.php @@ -1,15 +1,15 @@ Config::get('system', 'maxloadavg', 50)) { + if (intval($load[0]) > DI::config()->get('system', 'maxloadavg', 50)) { Logger::log('system: load ' . $load[0] . ' too high. Pumpio sync deferred to next scheduled run.'); return; }