From ff430640c031373abb2688e31bff6bc9f8cb2bd2 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 3 Aug 2016 10:19:46 +0200 Subject: [PATCH] Small variable type fixed, removed unused includes --- include/cronjobs.php | 7 ++----- include/poller.php | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/include/cronjobs.php b/include/cronjobs.php index ed27e23293..3a6df698e1 100644 --- a/include/cronjobs.php +++ b/include/cronjobs.php @@ -30,12 +30,9 @@ function cronjobs_run(&$argv, &$argc){ require_once('include/session.php'); require_once('include/datetime.php'); - require_once('include/items.php'); - require_once('include/Contact.php'); - require_once('include/email.php'); - require_once('include/socgraph.php'); - require_once('mod/nodeinfo.php'); + require_once('include/ostatus.php'); require_once('include/post_update.php'); + require_once('mod/nodeinfo.php'); load_config('config'); load_config('system'); diff --git a/include/poller.php b/include/poller.php index 622aa83bd7..6dce81e717 100644 --- a/include/poller.php +++ b/include/poller.php @@ -279,12 +279,10 @@ function poller_too_much_workers() { intval(PRIORITY_HIGH)); $high_running = $s[0]["total"]; - logger("High waiting: ".$high_waiting." - high running: ".$high_running); - /// @todo define maximum number of fastlanes 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); - $queue = $active + 1; + $queues = $active + 1; } }