hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [49/50] hadoop git commit: HADOOP-13080. Refresh time in SysInfoWindows is in nanoseconds. Contributed by Inigo Goiri
Date Tue, 03 May 2016 22:06:36 GMT
HADOOP-13080. Refresh time in SysInfoWindows is in nanoseconds. Contributed by Inigo Goiri

(cherry picked from commit c1cc6ac667e9e1b2ed58f16cb9fa1584ea54f0ac)
(cherry picked from commit a50dc05a60487b50b5e8e6f3c99673f18e9aad22)


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

Branch: refs/heads/branch-2.8
Commit: b5c8bac817d155e9a7944b4a98f71dc3bf9e618c
Parents: 9ea567d
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:38:08 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/b5c8bac8/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