if (App::callstack() != "poller_run") {
if (App::maxload_reached())
return;
- if (App::is_already_running('include/cron.php', 'cron', 540))
+ if (App::is_already_running('cron', 'include/cron.php', 540))
return;
}
proc_run('php',"include/queue.php");
- // run diaspora photo queue process in the background
-
- proc_run('php',"include/dsprphotoq.php");
-
// run the process to discover global contacts in the background
proc_run('php',"include/discover_poco.php");
// Check OStatus conversations
// Check only conversations with mentions (for a longer time)
- check_conversations(true);
+ ostatus::check_conversations(true);
// Check every conversation
- check_conversations(false);
+ ostatus::check_conversations(false);
// Set the gcontact-id in the item table if missing
item_set_gcontact();
continue;
// Calculate fragmentation
- $fragmentation = $table["Data_free"] / $table["Data_length"];
+ $fragmentation = $table["Data_free"] / ($table["Data_length"] + $table["Index_length"]);
logger("Table ".$table["Name"]." - Fragmentation level: ".round($fragmentation * 100, 2), LOGGER_DEBUG);