Merge branch 'ent-7392-aviso-configuracion-cron' into 'develop'

Change time check for cron

Closes pandora_enterprise#7392

See merge request artica/pandorafms!4296
This commit is contained in:
Daniel Rodriguez 2021-08-25 12:57:40 +00:00
commit e6c5d1a6ef
1 changed files with 1 additions and 1 deletions

View File

@ -2336,7 +2336,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') {