From: compudj Date: Sat, 14 Aug 2004 20:46:19 +0000 (+0000) Subject: use the time compare in the fastest way possible X-Git-Tag: v0.12.20~2734 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ca027792cbd02a4ba713edb615b139103694e3bc;p=lttv.git use the time compare in the fastest way possible git-svn-id: http://ltt.polymtl.ca/svn@755 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/tracecontext.c b/ltt/branches/poly/lttv/lttv/tracecontext.c index 3af6045c..6a5cb931 100644 --- a/ltt/branches/poly/lttv/lttv/tracecontext.c +++ b/ltt/branches/poly/lttv/lttv/tracecontext.c @@ -683,7 +683,7 @@ guint lttv_process_traceset_middle(LttvTracesetContext *self, count >= nb_events || (end_position!=NULL&<tv_traceset_context_ctx_pos_compare(self, end_position) == 0)|| - ltt_time_compare(tfc->timestamp, end) >= 0) + ltt_time_compare(end, tfc->timestamp) <= 0) { return count; }