Skip to content

Commit 21155ae

Browse files
committed
terminate when rounds or events are satisfied
1 parent 192de10 commit 21155ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simulator/src/main/java/byzzbench/simulator/service/SimulatorService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void start() {
162162
long currentRound = minQueuedRound.orElse(maxDeliveredRound.orElse(0));
163163

164164
if (numEvents >= byzzBenchConfig.getScenario().getTermination().getMinEvents()
165-
|| currentRound >= byzzBenchConfig.getScenario().getTermination().getMinRounds()) {
165+
&& currentRound >= byzzBenchConfig.getScenario().getTermination().getMinRounds()) {
166166
log.info("Reached min # of events or rounds for this run, terminating. . .");
167167
numMaxedOut++;
168168
scenario.getSchedule().finalizeSchedule();

0 commit comments

Comments
 (0)