Merge branch 'ent-1247-calculo-para-determinar-servidores-caidos' into 'develop'

Fixed down server time calculation

See merge request !825
This commit is contained in:
vgilc 2017-09-18 11:58:20 +02:00
commit 6347c4d3db
1 changed files with 4 additions and 1 deletions

View File

@ -607,7 +607,10 @@ sub main() {
$server->update();
}
db_do ($DBH, "UPDATE tserver SET status = 0 WHERE now()-keepalive > 2*server_keepalive");
db_do ($DBH,
"UPDATE tserver SET status = 0
WHERE UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(keepalive) > 2*server_keepalive"
);
# Set the master server
pandora_set_master(\%Config, $DBH);