X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=pumpio%2Fpumpio_sync.php;h=3e712d1000e86265d589c5caa13999a7242f9964;hb=4056a01f4707cdead153ad38795271937b4e044c;hp=de794ad6a97a89140fc059aa1afe498aacc46330;hpb=49eff56e5d1969a10bcc37c4aa0d8ae74c9f939d;p=friendica-addons.git diff --git a/pumpio/pumpio_sync.php b/pumpio/pumpio_sync.php index de794ad6..3e712d10 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; }