Fix issue with double count

This commit is contained in:
Victor Shcherb 2019-08-10 12:34:36 +03:00
parent 3dd6875ea5
commit 0199927f62

View file

@ -235,7 +235,6 @@ public class RoutingContext {
private int searchSubregionTile(RouteSubregion subregion){ private int searchSubregionTile(RouteSubregion subregion){
RoutingSubregionTile key = new RoutingSubregionTile(subregion); RoutingSubregionTile key = new RoutingSubregionTile(subregion);
long now = System.nanoTime();
int ind = Collections.binarySearch(subregionTiles, key, new Comparator<RoutingSubregionTile>() { int ind = Collections.binarySearch(subregionTiles, key, new Comparator<RoutingSubregionTile>() {
@Override @Override
public int compare(RoutingSubregionTile o1, RoutingSubregionTile o2) { public int compare(RoutingSubregionTile o1, RoutingSubregionTile o2) {
@ -256,7 +255,6 @@ public class RoutingContext {
} }
} }
} }
timeToLoadHeaders += (System.nanoTime() - now);
return ind; return ind;
} }