You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2018/12/26 20:48:28 UTC

[geode] 01/02: GEODE-3205: Fix timestamp warning

This is an automated email from the ASF dual-hosted git repository.

klund pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 18958023b40749892bc01d6388359998b88ae343
Author: Kirk Lund <kl...@apache.org>
AuthorDate: Fri Dec 21 12:39:33 2018 -0800

    GEODE-3205: Fix timestamp warning
---
 .../geode/internal/statistics/DiskSpaceLimitIntegrationTest.java  | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/DiskSpaceLimitIntegrationTest.java b/geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/DiskSpaceLimitIntegrationTest.java
index aaae898..97333e1 100644
--- a/geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/DiskSpaceLimitIntegrationTest.java
+++ b/geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/DiskSpaceLimitIntegrationTest.java
@@ -76,8 +76,6 @@ public class DiskSpaceLimitIntegrationTest {
   private StatArchiveHandlerConfig config;
 
   private long initTimeStamp;
-
-  private NanoTimer timer = new NanoTimer();
   private long nanosTimeStamp;
 
   @Rule
@@ -117,9 +115,9 @@ public class DiskSpaceLimitIntegrationTest {
 
     this.sampleCollector = new SampleCollector(sampler);
 
-    this.initTimeStamp = NanoTimer.getTime();
-    this.timer.reset();
-    this.nanosTimeStamp = this.timer.getLastResetTime() - getNanoRate();
+    NanoTimer timer = new NanoTimer();
+    this.initTimeStamp = timer.getConstructionTime() - getNanoRate();
+    this.nanosTimeStamp = timer.getConstructionTime();
 
     preConditions();
   }