Small variable type fixed, removed unused includes

This commit is contained in:
Michael Vogel 2016-08-03 10:19:46 +02:00
parent d673f44c5b
commit ff430640c0
2 changed files with 3 additions and 8 deletions

View File

@ -30,12 +30,9 @@ function cronjobs_run(&$argv, &$argc){
require_once('include/session.php'); require_once('include/session.php');
require_once('include/datetime.php'); require_once('include/datetime.php');
require_once('include/items.php'); require_once('include/ostatus.php');
require_once('include/Contact.php');
require_once('include/email.php');
require_once('include/socgraph.php');
require_once('mod/nodeinfo.php');
require_once('include/post_update.php'); require_once('include/post_update.php');
require_once('mod/nodeinfo.php');
load_config('config'); load_config('config');
load_config('system'); load_config('system');

View File

@ -279,12 +279,10 @@ function poller_too_much_workers() {
intval(PRIORITY_HIGH)); intval(PRIORITY_HIGH));
$high_running = $s[0]["total"]; $high_running = $s[0]["total"];
logger("High waiting: ".$high_waiting." - high running: ".$high_running);
/// @todo define maximum number of fastlanes /// @todo define maximum number of fastlanes
if (($high_waiting > 0) AND ($high_running == 0)) { if (($high_waiting > 0) AND ($high_running == 0)) {
logger("There are ".$high_waiting." high priority jobs waiting but none is executed. Open a fastlane.", LOGGER_DEBUG); logger("There are ".$high_waiting." high priority jobs waiting but none is executed. Open a fastlane.", LOGGER_DEBUG);
$queue = $active + 1; $queues = $active + 1;
} }
} }