Standards

pull/396/head
Michael 2016-12-28 03:28:26 +00:00
parent 9f18d7e6de
commit bacb6b379b
1 changed files with 7 additions and 6 deletions

View File

@ -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) {