Improve progressEstimation function

This commit is contained in:
Lukas Rieger (Blue) 2023-05-15 17:18:25 +02:00
parent aed400ddae
commit 083c6c06c2
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -66,7 +66,6 @@ public synchronized boolean hasMoreWork() {
@Override
public double estimateProgress() {
if (!hasMoreWork()) return 1;
int currentTask = this.currentTaskIndex;
if (currentTask >= this.tasks.size()) return 1;