forked from friendica/friendica-addons
Standards
This commit is contained in:
parent
9f18d7e6de
commit
bacb6b379b
1 changed files with 7 additions and 6 deletions
|
@ -31,8 +31,9 @@ function twitter_sync_run($argv, $argc){
|
|||
require_once("include/pidfile.php");
|
||||
|
||||
$maxsysload = intval(get_config('system','maxloadavg'));
|
||||
if($maxsysload < 1)
|
||||
if ($maxsysload < 1) {
|
||||
$maxsysload = 50;
|
||||
}
|
||||
if (function_exists('sys_getloadavg')) {
|
||||
$load = sys_getloadavg();
|
||||
if (intval($load[0]) > $maxsysload) {
|
||||
|
|
Loading…
Reference in a new issue