fix seek time
[lttv.git] / ltt / branches / poly / ltt / tracefile.c
index da5b356c15b092c8d66c419ec72b402532a606e4..a84381e9ec5c07789f7711353fa638f7d513955e 100644 (file)
@@ -1431,10 +1431,10 @@ int ltt_tracefile_seek_time(LttTracefile *tf, LttTime time)
 
     } else if(ltt_time_compare(time, tf->buffer.begin.timestamp) < 0) {
       /* go to lower part */
-      high = block_num;
+      high = block_num - 1;
     } else if(ltt_time_compare(time, tf->buffer.end.timestamp) > 0) {
       /* go to higher part */
-      low = block_num;
+      low = block_num + 1;
     } else {/* The event is right in the buffer!
                (or in the next buffer first event) */
       while(1) {
This page took 0.022913 seconds and 4 git commands to generate.