X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=pumpio%2Fpumpio_sync.php;h=3e712d1000e86265d589c5caa13999a7242f9964;hb=4056a01f4707cdead153ad38795271937b4e044c;hp=a23eb4b07d9202039ad1319e205da8c2009f6896;hpb=c431befd8e82db9b44d50118cf10dc2d88a5f15f;p=friendica-addons.git diff --git a/pumpio/pumpio_sync.php b/pumpio/pumpio_sync.php index a23eb4b0..3e712d10 100644 --- a/pumpio/pumpio_sync.php +++ b/pumpio/pumpio_sync.php @@ -1,15 +1,16 @@ Config::get('system', 'maxloadavg', 50)) { - logger('system: load ' . $load[0] . ' too high. Pumpio sync deferred to next scheduled run.'); + 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; } }