From b1369bef0ea0b917910103745570a913af4348a6 Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 25 Aug 2005 14:25:06 +0000 Subject: [PATCH] fix seek time git-svn-id: http://ltt.polymtl.ca/svn@1073 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/tracefile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index da5b356c..a84381e9 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -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) { -- 2.34.1