From 0199927f6242756e51b87c4a68ad3cca9d0664e3 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 10 Aug 2019 12:34:36 +0300 Subject: [PATCH] Fix issue with double count --- OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java b/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java index c048e545f2..ffba7dfee0 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java @@ -235,7 +235,6 @@ public class RoutingContext { private int searchSubregionTile(RouteSubregion subregion){ RoutingSubregionTile key = new RoutingSubregionTile(subregion); - long now = System.nanoTime(); int ind = Collections.binarySearch(subregionTiles, key, new Comparator() { @Override public int compare(RoutingSubregionTile o1, RoutingSubregionTile o2) { @@ -256,7 +255,6 @@ public class RoutingContext { } } } - timeToLoadHeaders += (System.nanoTime() - now); return ind; }