This commit is contained in:
2025-02-12 23:24:54 +03:00
parent 57baa6c9c1
commit 90b6f3648e
3 changed files with 12 additions and 5 deletions

View File

@@ -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));