This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit 2426fc05668d8c35d950e406c7ae2fa145b1e9c1 Author: Alex Herbert <aherb...@apache.org> AuthorDate: Fri Jun 6 15:20:09 2025 +0100 Correct parentheses for reporting progress --- .../java/org/apache/commons/rng/examples/stress/StressTestCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java index 08850e1c..2b08fb7a 100644 --- a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java +++ b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java @@ -694,7 +694,7 @@ class StressTestCommand implements Callable<Void> { // of a new one) // -- There are no pending tasks (i.e. the final submission or the end of a final task) if (completed >= total || - (current >= nextReportTimestamp && running == parallelTasks || pending == 0)) { + current >= nextReportTimestamp && (running == parallelTasks || pending == 0)) { // Report nextReportTimestamp = current + PROGRESS_INTERVAL; final StringBuilder sb = createStringBuilderWithTimestamp(current, pending, running, completed);