Skip to content

Commit

Permalink
modify Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
hmarkc committed Aug 30, 2021
1 parent db8ef16 commit 02da0fa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public Progress() {
public Progress(String name) {
this.setName(name);
startTime = System.currentTimeMillis();
current = 0;
max = 0;
}

public void completedWithErrors(Exception reason) {
Expand Down Expand Up @@ -83,7 +85,7 @@ public void setCurrent(int current) {
this.current = current;
}

public void incCurrent() {
public synchronized void incCurrent() {
this.current++;
}

Expand Down

0 comments on commit 02da0fa

Please sign in to comment.