From 9788e7905947d1896bbb3e18e9271b8d54ec00da Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 31 Aug 2005 00:08:19 +0000 Subject: [PATCH] seek time revert git-svn-id: http://ltt.polymtl.ca/svn@1093 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 fc02bfed..d3c65373 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -1431,7 +1431,7 @@ int ltt_tracefile_seek_time(LttTracefile *tf, LttTime time) if(ret == ERANGE) goto range; /* ERANGE or EPERM */ else if(ret) goto fail; - if(ltt_time_compare(time, tf->event.event_time) < 0) + if(ltt_time_compare(time, tf->event.event_time) >= 0) goto found; } @@ -1448,7 +1448,7 @@ int ltt_tracefile_seek_time(LttTracefile *tf, LttTime time) if(ret == ERANGE) goto range; /* ERANGE or EPERM */ else if(ret) goto fail; - if(ltt_time_compare(time, tf->event.event_time) < 0) + if(ltt_time_compare(time, tf->event.event_time) >= 0) break; } goto found; -- 2.34.1