Refactor time fields

This commit is contained in:
Victor Shcherb 2020-07-10 20:45:49 +02:00
parent a1cbdc111b
commit f59cea9c0a
2 changed files with 3 additions and 3 deletions

View file

@ -168,9 +168,9 @@ public class BinaryRoutePlanner {
if (ctx.calculationProgress != null) {
ctx.calculationProgress.visitedDirectSegments += visitedDirectSegments.size();
ctx.calculationProgress.visitedOppositeSegments += visitedOppositeSegments.size();
ctx.calculationProgress.directQueueSize = graphDirectSegments.size(); // Math.max(ctx.directQueueSize,
ctx.calculationProgress.directQueueSize += graphDirectSegments.size(); // Math.max(ctx.directQueueSize,
// graphDirectSegments.size());
ctx.calculationProgress.oppositeQueueSize = graphReverseSegments.size();
ctx.calculationProgress.oppositeQueueSize += graphReverseSegments.size();
ctx.calculationProgress.visitedOppositeSegments += visitedOppositeSegments.size();
}
return finalSegment;

View file

@ -318,7 +318,7 @@ public class RoutingContext {
global.allRoutes += ts.tileStatistics.allRoutes;
global.coordinates += ts.tileStatistics.coordinates;
}
if(calculationProgress != null) {
if (calculationProgress != null) {
calculationProgress.distinctLoadedTiles++;
}
}