hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From inigo...@apache.org
Subject [06/45] hadoop git commit: HADOOP-14293. Initialize FakeTimer with a less trivial value.
Date Mon, 17 Apr 2017 18:17:48 GMT
HADOOP-14293. Initialize FakeTimer with a less trivial value.


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

Branch: refs/heads/HDFS-10467
Commit: 3e2d9a498e518a29a6a8b33697afd5abdde49a02
Parents: 954f7f5
Author: Andrew Wang <wang@apache.org>
Authored: Mon Apr 10 11:37:01 2017 -0700
Committer: Inigo <inigoiri@apache.org>
Committed: Mon Apr 17 11:16:59 2017 -0700

----------------------------------------------------------------------
 .../src/test/java/org/apache/hadoop/util/FakeTimer.java           | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/3e2d9a49/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/FakeTimer.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/FakeTimer.java
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/FakeTimer.java
index 2b5f850..1b17ce7 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/FakeTimer.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/FakeTimer.java
@@ -33,7 +33,8 @@ public class FakeTimer extends Timer {
 
   /** Constructs a FakeTimer with a non-zero value */
   public FakeTimer() {
-    nowNanos = 1000;  // Initialize with a non-trivial value.
+    // Initialize with a non-trivial value.
+    nowNanos = TimeUnit.MILLISECONDS.toNanos(1000);
   }
 
   @Override


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message