hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject [1/3] hadoop git commit: HADOOP-13080. Refresh time in SysInfoWindows is in nanoseconds. Contributed by Inigo Goiri
Date Tue, 03 May 2016 05:38:41 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 ceb9a49d0 -> a50dc05a6
  refs/heads/branch-2.8 9ea567da4 -> b5c8bac81
  refs/heads/trunk 45a753ccf -> c1cc6ac66


HADOOP-13080. Refresh time in SysInfoWindows is in nanoseconds. Contributed by Inigo Goiri


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

Branch: refs/heads/trunk
Commit: c1cc6ac667e9e1b2ed58f16cb9fa1584ea54f0ac
Parents: 45a753c
Author: Chris Douglas <cdouglas@apache.org>
Authored: Mon May 2 22:36:58 2016 -0700
Committer: Chris Douglas <cdouglas@apache.org>
Committed: Mon May 2 22:36:58 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/util/SysInfoWindows.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/c1cc6ac6/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
index de0c43b..490c127 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
@@ -59,7 +59,7 @@ public class SysInfoWindows extends SysInfo {
 
   @VisibleForTesting
   long now() {
-    return System.nanoTime();
+    return Time.monotonicNow();
   }
 
   void reset() {


---------------------------------------------------------------------
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