Skip to content

Commit 10391c9

Browse files
committed
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)
1 parent b38d0b6 commit 10391c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/schema/src/com/cloud/host/dao/HostDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public void markHostsAsDisconnected(long msId, long lastPing) {
633633

634634
host = createForUpdate();
635635
host.setManagementServerId(null);
636-
host.setLastPinged((System.currentTimeMillis() >> 10) - (10 * 60));
636+
host.setLastPinged(lastPing);
637637
host.setDisconnectedOn(new Date());
638638
ub = getUpdateBuilder(host);
639639
update(ub, sc, null);

0 commit comments

Comments
 (0)