From: yangxx Date: Wed, 29 Oct 2003 16:21:46 +0000 (+0000) Subject: git-svn-id: http://ltt.polymtl.ca/svn@326 04897980-b3bd-0310-b5e0-8ef037075253 X-Git-Tag: v0.12.20~3163 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1ee6a9affe396783f98e15de3ba27faf96cd1ccd;p=lttv.git git-svn-id: ltt.polymtl.ca/svn@326 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index 07b8ab3a..6186fc2c 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -779,7 +779,9 @@ void ltt_tracefile_seek_time(LttTracefile *t, LttTime time) if(t->which_block == 1){ updateTracefile(t); }else{ - if(ltt_time_compare(t->prev_block_end_time, time) >= 0 ){ + if(ltt_time_compare(t->prev_block_end_time, time) >= 0 || + (t->prev_block_end_time.tv_sec == 0 && + t->prev_block_end_time.tv_nsec == 0 )){ err=readBlock(t,t->which_block-1); if(err) g_error("Can not read tracefile: %s\n", t->name); return ltt_tracefile_seek_time(t, time) ;