Standards

This commit is contained in:
Michael 2016-12-28 03:28:26 +00:00
parent 9f18d7e6de
commit bacb6b379b

View File

@ -31,8 +31,9 @@ function twitter_sync_run($argv, $argc){
require_once("include/pidfile.php"); require_once("include/pidfile.php");
$maxsysload = intval(get_config('system','maxloadavg')); $maxsysload = intval(get_config('system','maxloadavg'));
if($maxsysload < 1) if ($maxsysload < 1) {
$maxsysload = 50; $maxsysload = 50;
}
if (function_exists('sys_getloadavg')) { if (function_exists('sys_getloadavg')) {
$load = sys_getloadavg(); $load = sys_getloadavg();
if (intval($load[0]) > $maxsysload) { if (intval($load[0]) > $maxsysload) {