major ltt time seek bugfix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 30 Aug 2005 21:59:57 +0000 (21:59 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 30 Aug 2005 21:59:57 +0000 (21:59 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1091 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/facility.c
ltt/branches/poly/ltt/tracefile.c

index 01100f6685b1484de5b1191acb43aecc5260d824..0da437c329f50377c6ed856e8e0de4822928272e 100644 (file)
@@ -126,6 +126,7 @@ int ltt_facility_open(LttFacility *f, LttTrace * t, gchar * pathname)
       generateFacility(f, fac, checksum);
 
       g_free(fac->name);
+      free(fac->capname);
       g_free(fac->description);
       freeEvents(&fac->events);
       sequence_dispose(&fac->events);
index d3c6537326956e6aff339706372496118b63104e..fc02bfed119c167c573978b421b6ffceb68db0dd 100644 (file)
@@ -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;
This page took 0.026212 seconds and 4 git commands to generate.