From 757f9b751095e24279de94d28eacc7a9748a6ff2 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 16 Dec 2021 18:29:27 +0100 Subject: [PATCH] Recovered servers fix --- pandora_console/include/class/ConsoleSupervisor.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index ea0ac8479d..356867764f 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -1256,8 +1256,7 @@ class ConsoleSupervisor unix_timestamp() - unix_timestamp(keepalive) as downtime FROM tserver WHERE - unix_timestamp() - unix_timestamp(keepalive) > server_keepalive - OR status = 0' + unix_timestamp() - unix_timestamp(keepalive) > server_keepalive' ); if ($servers === false) { @@ -1298,13 +1297,12 @@ class ConsoleSupervisor FROM tserver WHERE unix_timestamp() - unix_timestamp(keepalive) <= server_keepalive - OR status != 0' + AND status = 1' ); - if (is_array($servers_working) === true) { foreach ($servers_working as $server) { $this->cleanNotifications( - 'NOTIF.SERVER.STATUS'.$server['id_server'] + 'NOTIF.SERVER.STATUS.'.$server['id_server'] ); } }