You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ko...@apache.org on 2014/09/01 14:23:26 UTC

git commit: updated refs/heads/master to 10391c9

Repository: cloudstack
Updated Branches:
  refs/heads/master b38d0b6b4 -> 10391c9b4


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)


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/10391c9b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/10391c9b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/10391c9b

Branch: refs/heads/master
Commit: 10391c9b49ea35cc1c2f55fde5f160cde832e503
Parents: b38d0b6
Author: Koushik Das <ko...@apache.org>
Authored: Mon Sep 1 17:44:55 2014 +0530
Committer: Koushik Das <ko...@apache.org>
Committed: Mon Sep 1 17:44:55 2014 +0530

----------------------------------------------------------------------
 engine/schema/src/com/cloud/host/dao/HostDaoImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/10391c9b/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java b/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java
index 92283ae..58d472e 100755
--- a/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java
+++ b/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java
@@ -633,7 +633,7 @@ public class HostDaoImpl extends GenericDaoBase<HostVO, Long> implements HostDao
 
         host = createForUpdate();
         host.setManagementServerId(null);
-        host.setLastPinged((System.currentTimeMillis() >> 10) - (10 * 60));
+        host.setLastPinged(lastPing);
         host.setDisconnectedOn(new Date());
         ub = getUpdateBuilder(host);
         update(ub, sc, null);