commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1102551 - /commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java
Date Fri, 13 May 2011 03:14:47 GMT
Author: psteitz
Date: Fri May 13 03:14:46 2011
New Revision: 1102551

URL: http://svn.apache.org/viewvc?rev=1102551&view=rev
Log:
Changed to use toString added to StatisticalSummaryValues in math 2.2.

Modified:
    commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java

Modified: commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java
URL: http://svn.apache.org/viewvc/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java?rev=1102551&r1=1102550&r2=1102551&view=diff
==============================================================================
--- commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java
(original)
+++ commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java
Fri May 13 03:14:46 2011
@@ -310,28 +310,12 @@ public class Statistics implements Seria
         Iterator<String> metricsIterator = getTypes().iterator();
         StringBuffer buffer = new StringBuffer();
         while (metricsIterator.hasNext()) {
-            /* Restore this when math 2.2 is released with MATH-420 fixed
-            buffer.append(getOverallSummary(metric).toString()); */
             String metric = metricsIterator.next();
             buffer.append("********************************************\n");
             buffer.append("Overall summary statistics (all threads combined) ");
             buffer.append(metric.toUpperCase());
             buffer.append("\n");
-            StatisticalSummaryValues summary = getOverallSummary(metric);
-            buffer.append("n: ");
-            buffer.append(summary.getN());
-            buffer.append("\n");
-            buffer.append("mean: ");
-            buffer.append(summary.getMean());
-            buffer.append("\n");
-            buffer.append("min: ");
-            buffer.append(summary.getMin());
-            buffer.append("\n");
-            buffer.append("max: ");
-            buffer.append(summary.getMax());
-            buffer.append("\n");
-            buffer.append("std dev: ");
-            buffer.append(summary.getStandardDeviation());
+            buffer.append(getOverallSummary(metric).toString());
             buffer.append("\n");
             buffer.append("********************************************\n");
         }



Mime
View raw message