X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ftracefile.c;h=144ee8cfa0dd60a1b389ff12acc919e62b476291;hb=d9e13a0f55bea972da784889a7b6975aa03e4a5d;hp=fc02bfed119c167c573978b421b6ffceb68db0dd;hpb=d2ace3a93efa61ccde967a32626090c77e20b583;p=lttv.git diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index fc02bfed..144ee8cf 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;