Fix timings
This commit is contained in:
parent
d592736252
commit
f4d0145d59
1 changed files with 2 additions and 2 deletions
|
@ -671,7 +671,7 @@ public class RoutePlannerFrontEnd {
|
||||||
res = searchRouteImpl(ctx, points, routeDirection);
|
res = searchRouteImpl(ctx, points, routeDirection);
|
||||||
}
|
}
|
||||||
if (ctx.calculationProgress != null) {
|
if (ctx.calculationProgress != null) {
|
||||||
ctx.calculationProgress.timeToCalculate = System.nanoTime() - timeToCalculate;
|
ctx.calculationProgress.timeToCalculate += (System.nanoTime() - timeToCalculate);
|
||||||
}
|
}
|
||||||
BinaryRoutePlanner.printDebugMemoryInformation(ctx);
|
BinaryRoutePlanner.printDebugMemoryInformation(ctx);
|
||||||
if (res != null) {
|
if (res != null) {
|
||||||
|
@ -870,7 +870,7 @@ public class RoutePlannerFrontEnd {
|
||||||
current = pr;
|
current = pr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ctx.routingTime = ctx.calculationProgress.routingCalculatedTime;
|
ctx.routingTime += ctx.calculationProgress.routingCalculatedTime;
|
||||||
return new RouteResultPreparation().prepareResult(ctx, result, recalculationEnd != null);
|
return new RouteResultPreparation().prepareResult(ctx, result, recalculationEnd != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue