Skip to content

Commit 2426fc0

Browse files
committed
Correct parentheses for reporting progress
1 parent 49f9e64 commit 2426fc0

File tree

1 file changed

+1
-1
lines changed
  • commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress

1 file changed

+1
-1
lines changed

commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ private void reportProgress(long current) {
694694
// of a new one)
695695
// -- There are no pending tasks (i.e. the final submission or the end of a final task)
696696
if (completed >= total ||
697-
(current >= nextReportTimestamp && running == parallelTasks || pending == 0)) {
697+
current >= nextReportTimestamp && (running == parallelTasks || pending == 0)) {
698698
// Report
699699
nextReportTimestamp = current + PROGRESS_INTERVAL;
700700
final StringBuilder sb = createStringBuilderWithTimestamp(current, pending, running, completed);

0 commit comments

Comments
 (0)