cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kous...@apache.org
Subject git commit: updated refs/heads/master to 10391c9
Date Mon, 01 Sep 2014 12:23:26 GMT
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 <koushik@apache.org>
Authored: Mon Sep 1 17:44:55 2014 +0530
Committer: Koushik Das <koushik@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);


Mime
View raw message