mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Merge branch 'ent-7251-no-generar-notificaciones-con-servidores-deshabilitados' into 'develop'
Recovered servers fix See merge request artica/pandorafms!4594
This commit is contained in:
commit
8efea9f44c
@ -1256,8 +1256,7 @@ class ConsoleSupervisor
|
|||||||
unix_timestamp() - unix_timestamp(keepalive) as downtime
|
unix_timestamp() - unix_timestamp(keepalive) as downtime
|
||||||
FROM tserver
|
FROM tserver
|
||||||
WHERE
|
WHERE
|
||||||
unix_timestamp() - unix_timestamp(keepalive) > server_keepalive
|
unix_timestamp() - unix_timestamp(keepalive) > server_keepalive'
|
||||||
OR status = 0'
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($servers === false) {
|
if ($servers === false) {
|
||||||
@ -1298,13 +1297,12 @@ class ConsoleSupervisor
|
|||||||
FROM tserver
|
FROM tserver
|
||||||
WHERE
|
WHERE
|
||||||
unix_timestamp() - unix_timestamp(keepalive) <= server_keepalive
|
unix_timestamp() - unix_timestamp(keepalive) <= server_keepalive
|
||||||
OR status != 0'
|
AND status = 1'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (is_array($servers_working) === true) {
|
if (is_array($servers_working) === true) {
|
||||||
foreach ($servers_working as $server) {
|
foreach ($servers_working as $server) {
|
||||||
$this->cleanNotifications(
|
$this->cleanNotifications(
|
||||||
'NOTIF.SERVER.STATUS'.$server['id_server']
|
'NOTIF.SERVER.STATUS.'.$server['id_server']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user