hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject hadoop git commit: HADOOP-14293. Initialize FakeTimer with a less trivial value.
Date Mon, 10 Apr 2017 18:37:45 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.7 e5d5d0ddb -> 60a3a6399


HADOOP-14293. Initialize FakeTimer with a less trivial value.

(cherry picked from commit be144117a885cb39bc192279c96cbe3790dc77b1)
(cherry picked from commit dab1deb9a0c96471b6da4ef95be86cbc81d55305)


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

Branch: refs/heads/branch-2.7
Commit: 60a3a6399018724b9bf4af7801ac486980a88474
Parents: e5d5d0d
Author: Andrew Wang <wang@apache.org>
Authored: Mon Apr 10 11:37:01 2017 -0700
Committer: Andrew Wang <wang@apache.org>
Committed: Mon Apr 10 11:37:38 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/60a3a639/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