git-svn-id: http://ltt.polymtl.ca/svn@326 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 29 Oct 2003 16:21:46 +0000 (16:21 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 29 Oct 2003 16:21:46 +0000 (16:21 +0000)
ltt/branches/poly/ltt/tracefile.c

index 07b8ab3a837a1f3d5cb7a69124a1f58f5482df87..6186fc2ca5e70da0cfb75b8745b5fa3d7b53451e 100644 (file)
@@ -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) ;
This page took 0.026192 seconds and 4 git commands to generate.