]> git.mxchange.org Git - friendica.git/blobdiff - include/poller.php
There is now two different checks for the completion of conversations
[friendica.git] / include / poller.php
index cef11a74431a111fa268fe93ea919ab4539a89f9..d971d4f00410a76cb77acac4364516c327052884 100644 (file)
@@ -46,7 +46,7 @@ function poller_run(&$argv, &$argc){
        if(function_exists('sys_getloadavg')) {
                $load = sys_getloadavg();
                if(intval($load[0]) > $maxsysload) {
-                       logger('system: load ' . $load . ' too high. Poller deferred to next scheduled run.');
+                       logger('system: load ' . $load[0] . ' too high. Poller deferred to next scheduled run.');
                        return;
                }
        }
@@ -103,7 +103,11 @@ function poller_run(&$argv, &$argc){
                $abandon_days = 0;
 
        // Check OStatus conversations
-       check_conversations();
+       // Check only conversations with mentions (for a longer time)
+       check_conversations(true);
+
+       // Check every conversation
+       check_conversations(false);
 
        // To-Do: Regenerate usage statistics
        // q("ANALYZE TABLE `item`");