lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r728751 - /lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java
Date Mon, 22 Dec 2008 19:37:59 GMT
Author: mikemccand
Date: Mon Dec 22 11:37:58 2008
New Revision: 728751

URL: http://svn.apache.org/viewvc?rev=728751&view=rev
Log:
LUCENE-1495: fix TaskSequence.toString to show time-limited configuration

Modified:
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java?rev=728751&r1=728750&r2=728751&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java
(original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java
Mon Dec 22 11:37:58 2008
@@ -19,6 +19,7 @@
 
 import java.util.ArrayList;
 import java.util.Iterator;
+import java.text.NumberFormat;
 
 import org.apache.lucene.benchmark.byTask.PerfRunData;
 import org.apache.lucene.benchmark.byTask.feeds.NoMoreDataException;
@@ -277,10 +278,11 @@
     }
     sb.append(padd);
     sb.append(!letChildReport ? ">" : (parallel ? "]" : "}"));
-    if (repetitions>1) {
+    if (fixedTime) {
+      sb.append(" " + NumberFormat.getNumberInstance().format(runTimeSec) + "s");
+    } else if (repetitions>1) {
       sb.append(" * " + repetitions);
-    }
-    if (repetitions==REPEAT_EXHAUST) {
+    } else if (repetitions==REPEAT_EXHAUST) {
       sb.append(" * EXHAUST");
     }
     if (rate>0) {



Mime
View raw message