cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthon...@apache.org
Subject [2/2] git commit: updated refs/heads/master to f5eae55
Date Wed, 24 Sep 2014 17:59:14 GMT
timeInSeconds * 1000

timeInSeconds is int type, if timeInSeconds is very big, it makes "timeInseconds * 1000" very
small even 0


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

Branch: refs/heads/master
Commit: f5eae55abb4591109dd22c1ba9d25f0876ebe52f
Parents: c74dada
Author: Anthony Xu <anthony.xu@citrix.com>
Authored: Wed Sep 24 10:57:36 2014 -0700
Committer: Anthony Xu <anthony.xu@citrix.com>
Committed: Wed Sep 24 10:57:36 2014 -0700

----------------------------------------------------------------------
 framework/db/src/com/cloud/utils/db/Merovingian2.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f5eae55a/framework/db/src/com/cloud/utils/db/Merovingian2.java
----------------------------------------------------------------------
diff --git a/framework/db/src/com/cloud/utils/db/Merovingian2.java b/framework/db/src/com/cloud/utils/db/Merovingian2.java
index 9d4d65b..0c76fb5 100644
--- a/framework/db/src/com/cloud/utils/db/Merovingian2.java
+++ b/framework/db/src/com/cloud/utils/db/Merovingian2.java
@@ -120,7 +120,7 @@ public class Merovingian2 extends StandardMBean implements MerovingianMBean
{
         }
         long startTime = InaccurateClock.getTime();
 
-        while ((InaccurateClock.getTime() - startTime) < (timeInSeconds * 1000)) {
+        while ((InaccurateClock.getTime() - startTime) < (timeInSeconds * 1000l)) {
             int count = owns(key);
 
             if (count >= 1) {


Mime
View raw message