From d0c3174d8c6c023556d0495089f77cd38aad22d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Tue, 27 Apr 2021 12:19:20 +0200 Subject: [PATCH] Improved business logic for cron --- pandora_server/lib/PandoraFMS/Tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/Tools.pm b/pandora_server/lib/PandoraFMS/Tools.pm index 0d532e46dc..f71287822a 100755 --- a/pandora_server/lib/PandoraFMS/Tools.pm +++ b/pandora_server/lib/PandoraFMS/Tools.pm @@ -1733,7 +1733,7 @@ sub cron_check_interval { my ($down, $up) = cron_get_interval($elem_cron); # Check if it is not a range - if (!defined($up)) { + if (!defined($up) || $up eq $down) { return ($down == $elem_curr_time) ? 1 : 0; }