tmf : Fix binary search end time in InMemoryBackend
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / internal / tmf / core / statesystem / backends / InMemoryBackend.java
index cfd6841abe05b71be7216a7ca793742417a522b0..b4eedf3d1df7b2488f047c6031ed775aadc429bc 100644 (file)
@@ -185,7 +185,7 @@ public class InMemoryBackend implements IStateHistoryBackend {
 
         /* The returned value is < 0 if the exact key was not found. */
         if (mid < 0) {
-            mid = -mid;
+            mid = -mid - 1;
         }
 
         /*
This page took 0.040326 seconds and 5 git commands to generate.