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