Standards
parent
9f18d7e6de
commit
bacb6b379b
|
@ -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 New Issue