ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [4/9] incubator-ignite git commit: # ignite avoid division by 0
Date Tue, 30 Dec 2014 09:07:18 GMT
# ignite avoid division by 0


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/679608c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/679608c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/679608c2

Branch: refs/heads/ignite-1
Commit: 679608c21a6a9dd1061ba41c1a2eaa13560e5a1d
Parents: 04a442e
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Dec 30 09:51:23 2014 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Dec 30 09:51:23 2014 +0300

----------------------------------------------------------------------
 .../src/test/java/org/gridgain/grid/lang/IgniteUuidSelfTest.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/679608c2/modules/core/src/test/java/org/gridgain/grid/lang/IgniteUuidSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/gridgain/grid/lang/IgniteUuidSelfTest.java b/modules/core/src/test/java/org/gridgain/grid/lang/IgniteUuidSelfTest.java
index b9f0074..186a4b3 100644
--- a/modules/core/src/test/java/org/gridgain/grid/lang/IgniteUuidSelfTest.java
+++ b/modules/core/src/test/java/org/gridgain/grid/lang/IgniteUuidSelfTest.java
@@ -95,6 +95,9 @@ public class IgniteUuidSelfTest extends GridCommonAbstractTest {
 
         long dur2 = System.currentTimeMillis() - start;
 
+        if (dur2 == 0)
+            dur2 = 1;
+
         System.out.println("Creation: UUID=" + dur1 + "ms, GridUuid=" + dur2 + "ms, " + (dur1
/ dur2) + "x faster.");
     }
 


Mime
View raw message