Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-1495: fix TaskSequence.toString to show time-limited configuration

Michael McCandlesseb6466121645
diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java
index 205f529ad49..8e0b6caf10d 100644
--- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java
+++ b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java
@@ -19,6 +19,7 @@ package org.apache.lucene.benchmark.byTask.tasks;
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 @@ public class TaskSequence extends PerfTask {
}
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) {