From ecce5d20e9f3a5e194bde8f63c5d479f17979a06 Mon Sep 17 00:00:00 2001 From: Jean-Christian Kouame Date: Fri, 28 Jun 2013 15:06:35 -0400 Subject: [PATCH] tmf : Fix binary search end time in InMemoryBackend first interval was not always considered in memory backend request Change-Id: I3741d182d362da835a08a1771fa87421744c9fff Signed-off-by: Jean-Christian Kouame Reviewed-on: https://git.eclipse.org/r/14117 Tested-by: Hudson CI Reviewed-by: Matthew Khouzam IP-Clean: Matthew Khouzam Tested-by: Matthew Khouzam Reviewed-by: Alexandre Montplaisir IP-Clean: Alexandre Montplaisir Tested-by: Alexandre Montplaisir --- .../internal/tmf/core/statesystem/backends/InMemoryBackend.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/InMemoryBackend.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/InMemoryBackend.java index cfd6841abe..b4eedf3d1d 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/InMemoryBackend.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/InMemoryBackend.java @@ -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; } /* -- 2.34.1