accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [accumulo-testing] ctubbsii commented on a change in pull request #105: Clean up and Minor Changes to ConditionalMutationsPT
Date Thu, 25 Jul 2019 19:39:40 GMT
ctubbsii commented on a change in pull request #105: Clean up and Minor Changes to ConditionalMutationsPT
URL: https://github.com/apache/accumulo-testing/pull/105#discussion_r307468392
 
 

 ##########
 File path: src/main/java/org/apache/accumulo/testing/performance/tests/ConditionalMutationsPT.java
 ##########
 @@ -434,10 +440,8 @@ private static double setBlockSizeTime(ConditionalWriter cw, int numRows,
int nu
       throw new RuntimeException();
     }
 
-    long t2 = System.currentTimeMillis();
-
-    double rate = 30000 / ((t2 - t1) / 1000.0);
+    long t2 = System.nanoTime();
 
-    return rate;
+    return 30000 / TimeUnit.MICROSECONDS.toSeconds(t2 - t1);
 
 Review comment:
   Last one. :1234: 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message