ctf: simplify search
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.ctf.core / src / org / eclipse / tracecompass / ctf / core / trace / CTFStreamInputReader.java
index f658075b529dabc9e8d8918d8aa0ebc18da98e1c..8faf38c45f58c256a0f4b16a9eb7c6100f0aa1ba 100644 (file)
@@ -348,7 +348,7 @@ public class CTFStreamInputReader implements AutoCloseable {
      *             if an error occurs
      */
     private void gotoPacket(long timestamp) throws CTFException {
-        fPacketIndex = fStreamInput.getIndex().search(timestamp).previousIndex();
+        fPacketIndex = fStreamInput.getIndex().search(timestamp) - 1;
         /*
          * Switch to this packet.
          */
This page took 0.024522 seconds and 5 git commands to generate.