From d2ace3a93efa61ccde967a32626090c77e20b583 Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 30 Aug 2005 21:59:57 +0000 Subject: [PATCH] major ltt time seek bugfix git-svn-id: http://ltt.polymtl.ca/svn@1091 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/facility.c | 1 + ltt/branches/poly/ltt/tracefile.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ltt/branches/poly/ltt/facility.c b/ltt/branches/poly/ltt/facility.c index 01100f66..0da437c3 100644 --- a/ltt/branches/poly/ltt/facility.c +++ b/ltt/branches/poly/ltt/facility.c @@ -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); diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index d3c65373..fc02bfed 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