From 369dffd1b4a1221354cb7cd9451f148fa05a79e1 Mon Sep 17 00:00:00 2001 From: Calvo Date: Wed, 15 Feb 2023 11:12:11 +0100 Subject: [PATCH] Fix non dataserver lag calculation --- pandora_server/lib/PandoraFMS/Core.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 3e2e28b5c0..04fd172019 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -5647,7 +5647,7 @@ sub pandora_server_statistics ($$) { ) tam ON tae.id_agente_modulo = tam.id_agente_modulo WHERE (UNIX_TIMESTAMP() - tae.last_execution_try) < ( tae.current_interval * 10) - AND (tam.flag = 1 OR (UNIX_TIMESTAMP() - tae.last_execution_try) > tae.current_interval);", $server->{"id_server"}); + AND (tam.flag = 1 OR (UNIX_TIMESTAMP() - tae.last_execution_try) > tae.current_interval)", $server->{"id_server"}); } # Dataserver LAG calculation: else {