mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Set 'last ping' time for host based on ping.timeout and ping.interval global config values
(currentTime - (ping.timeout * ping.interval)) instead of using hardcoded value of (currentTime - 10mins)
This commit is contained in:
parent
b38d0b6b43
commit
10391c9b49
@ -633,7 +633,7 @@ public class HostDaoImpl extends GenericDaoBase<HostVO, Long> implements HostDao
|
|||||||
|
|
||||||
host = createForUpdate();
|
host = createForUpdate();
|
||||||
host.setManagementServerId(null);
|
host.setManagementServerId(null);
|
||||||
host.setLastPinged((System.currentTimeMillis() >> 10) - (10 * 60));
|
host.setLastPinged(lastPing);
|
||||||
host.setDisconnectedOn(new Date());
|
host.setDisconnectedOn(new Date());
|
||||||
ub = getUpdateBuilder(host);
|
ub = getUpdateBuilder(host);
|
||||||
update(ub, sc, null);
|
update(ub, sc, null);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user