Fix: seek by timestamp
[babeltrace.git] / lib / iterator.c
index 686ddb1bfdcb9e80d46dfe89736c2fdaa4a01cd6..0af151402b429d3fe95d9c92c42e9e07eb9436f5 100644 (file)
@@ -110,8 +110,7 @@ static int seek_file_stream_by_timestamp(struct ctf_file_stream *cfs,
        for (i = 0; i < stream_pos->packet_index->len; i++) {
                index = &g_array_index(stream_pos->packet_index,
                                struct packet_index, i);
-               if (index->timestamp_begin >= timestamp ||
-                               index->timestamp_end <= timestamp)
+               if (index->timestamp_end <= timestamp)
                        continue;
 
                stream_pos->packet_seek(&stream_pos->parent, i, SEEK_SET);
This page took 0.030621 seconds and 4 git commands to generate.