aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christian Kouame2013-06-28 15:06:35 (EDT)
committerAlexandre Montplaisir2013-07-02 10:30:56 (EDT)
commit9898079defaa94bc3f0cf60dc89b1e863ac304da (patch)
tree46f9ae99d0cfce0d2fc4424058a79f3e27f587a5
parent47eeed4670e96cd506b2ba1860758d7c23bbd025 (diff)
downloadorg.eclipse.linuxtools-9898079defaa94bc3f0cf60dc89b1e863ac304da.zip
org.eclipse.linuxtools-9898079defaa94bc3f0cf60dc89b1e863ac304da.tar.gz
org.eclipse.linuxtools-9898079defaa94bc3f0cf60dc89b1e863ac304da.tar.bz2
tmf : Fix binary search end time in InMemoryBackendrefs/changes/17/14117/3
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 <matthew.khouzam@ericsson.com> IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com> Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im> IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im> Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/InMemoryBackend.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/InMemoryBackend.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/InMemoryBackend.java
index cfd6841..b4eedf3 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/InMemoryBackend.java
+++ b/lttng/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;
}
/*