Adjust progress

This commit is contained in:
Victor Shcherb 2020-09-10 10:29:50 +02:00
parent f944ef5e64
commit ce31948e71

View file

@ -58,7 +58,7 @@ public class RouteCalculationProgress {
progress = (INITIAL_PROGRESS + FIRST_ITERATION) + pr * (1 - FIRST_ITERATION - INITIAL_PROGRESS);
}
} else {
progress = (iteration + Math.min(pr, 1)) / totalIterations;
progress = (float) ((iteration + Math.min(pr, 0.7)) / totalIterations);
}
return Math.min(progress * 100f, 99);
}