Browse Source

Small variable type fixed, removed unused includes

tags/3.5
Michael Vogel 4 years ago
parent
commit
ff430640c0
2 changed files with 3 additions and 8 deletions
  1. +2
    -5
      include/cronjobs.php
  2. +1
    -3
      include/poller.php

+ 2
- 5
include/cronjobs.php View 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');


+ 1
- 3
include/poller.php View 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;
}
}



Loading…
Cancel
Save