]> git.mxchange.org Git - friendica.git/commitdiff
Small variable type fixed, removed unused includes
authorMichael Vogel <icarus@dabo.de>
Wed, 3 Aug 2016 08:19:46 +0000 (10:19 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 3 Aug 2016 08:19:46 +0000 (10:19 +0200)
include/cronjobs.php
include/poller.php

index ed27e232931940eca164b4cf2be02e6125f4be13..3a6df698e1ff94f727ab184c27bc2a09b29e73da 100644 (file)
@@ -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');
index 622aa83bd78c90eae6545b43b34b22daecc9954a..6dce81e717cf617b9d1a8922aa4390fed8ae35a4 100644 (file)
@@ -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;
                        }
                }