Move Config::get() to DI::config()->get()
This commit is contained in:
@@ -11,7 +11,7 @@ function twitter_sync_run($argv, $argc)
|
||||
|
||||
if (function_exists('sys_getloadavg')) {
|
||||
$load = sys_getloadavg();
|
||||
if (intval($load[0]) > 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user