mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
fixes satellite contact interval detector
Former-commit-id: b3536e29fd7ae1330667eee7bf98a55ef3f65e4b
This commit is contained in:
parent
ccb41f1b68
commit
e672456998
@ -1065,6 +1065,7 @@ class ConsoleSupervisor
|
||||
id_server,
|
||||
name,
|
||||
server_type,
|
||||
server_keepalive,
|
||||
status,
|
||||
unix_timestamp() - unix_timestamp(keepalive) as downtime
|
||||
FROM tserver
|
||||
@ -1100,8 +1101,8 @@ class ConsoleSupervisor
|
||||
}
|
||||
|
||||
foreach ($servers as $server) {
|
||||
if ($server['type'] == SERVER_TYPE_ENTERPRISE_SATELLITE) {
|
||||
if ($server['downtime'] < ($server['keepalive'] * 2)) {
|
||||
if ($server['server_type'] == SERVER_TYPE_ENTERPRISE_SATELLITE) {
|
||||
if ($server['downtime'] < ($server['server_keepalive'] * 2)) {
|
||||
// Satellite uses different keepalive mode.
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user