]> git.mxchange.org Git - friendica.git/commitdiff
The cron interval is minutes - so we have to convert it into seconds
authorMichael <heluecht@pirati.ca>
Wed, 27 Feb 2019 08:55:25 +0000 (08:55 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 27 Feb 2019 08:55:25 +0000 (08:55 +0000)
src/Core/Worker.php

index 3c1f08fdaecbd47c2e70dffa5e4002b6e53a363b..984fca595011ec63a323290ff5ab65c34127404d 100644 (file)
@@ -143,7 +143,7 @@ class Worker
                        }
 
                        // Quit the worker once every cron interval
-                       if (time() > ($starttime + Config::get('system', 'cron_interval'))) {
+                       if (time() > ($starttime + (Config::get('system', 'cron_interval') * 60))) {
                                Logger::log('Process lifetime reached, respawning.', Logger::DEBUG);
                                self::spawnWorker();
                                return;