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:
Michael McCandless 2008-12-22 19:37:58 +00:00
parent 5c8ea7a321
commit eb64661216
1 changed files with 5 additions and 3 deletions

View File

@ -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) {