mirror of https://github.com/apache/lucene.git
LUCENE-1495: fix TaskSequence.toString to show time-limited configuration
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@728751 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c8ea7a321
commit
eb64661216
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue