X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=twitter%2Ftwitter_sync.php;h=bd4c4444f5c12bc621385b4dd64ec4aab1f231d0;hb=1848cf79fad164f08ee46df55f3c64de77f19a19;hp=b2c655e7c809b0fb6e00cdfad159d9d6b77745cb;hpb=b303aedd668010f80457cc5b0080a39c8919a09c;p=friendica-addons.git diff --git a/twitter/twitter_sync.php b/twitter/twitter_sync.php index b2c655e7..bd4c4444 100644 --- a/twitter/twitter_sync.php +++ b/twitter/twitter_sync.php @@ -1,17 +1,17 @@ Config::get('system', 'maxloadavg', 50)) { + if (intval($load[0]) > DI::config()->get('system', 'maxloadavg', 50)) { Logger::log('system: load ' . $load[0] . ' too high. Twitter sync deferred to next scheduled run.'); return; }