Adjust progress
This commit is contained in:
parent
f944ef5e64
commit
ce31948e71
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ public class RouteCalculationProgress {
|
||||||
progress = (INITIAL_PROGRESS + FIRST_ITERATION) + pr * (1 - FIRST_ITERATION - INITIAL_PROGRESS);
|
progress = (INITIAL_PROGRESS + FIRST_ITERATION) + pr * (1 - FIRST_ITERATION - INITIAL_PROGRESS);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
progress = (iteration + Math.min(pr, 1)) / totalIterations;
|
progress = (float) ((iteration + Math.min(pr, 0.7)) / totalIterations);
|
||||||
}
|
}
|
||||||
return Math.min(progress * 100f, 99);
|
return Math.min(progress * 100f, 99);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue