fix
This commit is contained in:
@@ -565,7 +565,9 @@ public class Utils {
|
||||
if (errors > 0) {
|
||||
state = TaskState.DoneWithErrors;
|
||||
} else {
|
||||
complete = total;
|
||||
if (complete==0){
|
||||
complete = total = 1;
|
||||
}
|
||||
state = TaskState.Done;
|
||||
}
|
||||
return new Pair<>(state, (int) ((((double) complete) / total) * 100));
|
||||
|
||||
Reference in New Issue
Block a user