We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9ed67a commit 9a791bbCopy full SHA for 9a791bb
1 file changed
scijava/scijava-ops-engine/src/main/java/org/scijava/ops/engine/progress/Task.java
@@ -25,7 +25,7 @@ public Task(Task parent) {
25
26
boolean tasksDefined = false;
27
28
- AtomicLong max = new AtomicLong(0);
+ AtomicLong max = new AtomicLong(1);
29
30
AtomicLong current = new AtomicLong(0);
31
@@ -47,6 +47,7 @@ private void recordSubtaskCompletion(Task task) {
47
if (!subTasks.contains(task)) throw new IllegalArgumentException("Task " +
48
task + " is not a subtask of Task " + this);
49
subTasksCompleted.getAndIncrement();
50
+
51
}
52
53
public boolean isComplete() {
0 commit comments