[jbosscache-commits] JBoss Cache SVN: r8070 - benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Mon May 25 08:45:54 EDT 2009


Author: galder.zamarreno at jboss.com
Date: 2009-05-25 08:45:54 -0400 (Mon, 25 May 2009)
New Revision: 8070

Modified:
   benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/CsvStatisticReportGenerator.java
Log:
Fix total put/get time to calculate seconds properly.

Modified: benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/CsvStatisticReportGenerator.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/CsvStatisticReportGenerator.java	2009-05-24 23:41:21 UTC (rev 8069)
+++ benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/CsvStatisticReportGenerator.java	2009-05-25 12:45:54 UTC (rev 8070)
@@ -7,6 +7,7 @@
 
 import java.io.BufferedWriter;
 import java.io.IOException;
+import java.util.concurrent.TimeUnit;
 
 
 /**
@@ -47,9 +48,9 @@
          buf.append(",");
          buf.append(stResults.getNumThreads());
          buf.append(",");
-         buf.append(putData.getSum() / 1000);
+         buf.append(TimeUnit.NANOSECONDS.toSeconds((long) putData.getSum()));
          buf.append(",");
-         buf.append(getData.getSum() / 1000);
+         buf.append(TimeUnit.NANOSECONDS.toSeconds(((long) getData.getSum())));
          buf.append(",");
          buf.append(putData.getMean());
          buf.append(",");




More information about the jbosscache-commits mailing list