Change time check for cron

This commit is contained in:
José González 2021-07-14 11:31:54 +02:00
parent b7729447f6
commit 4c962cd25c
1 changed files with 1 additions and 1 deletions

View File

@ -2334,7 +2334,7 @@ class ConsoleSupervisor
// Check if DiscoveryCronTasks is running. Warn user if not.
if ($config['cron_last_run'] == 0
|| (get_system_time() - $config['cron_last_run']) > 3600
|| (get_system_time() - $config['cron_last_run']) > SECONDS_10MINUTES
) {
$message_conf_cron = __('DiscoveryConsoleTasks is not running properly');
if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') {