From: compudj Date: Sun, 4 Sep 2005 19:24:11 +0000 (+0000) Subject: position position compare fix X-Git-Tag: v0.12.20~2370 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=565f24911d29ae5ca6bc096192df984fca27f902;p=lttv.git position position compare fix git-svn-id: http://ltt.polymtl.ca/svn@1119 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/tracecontext.c b/ltt/branches/poly/lttv/lttv/tracecontext.c index 73096b3d..dd59a15a 100644 --- a/ltt/branches/poly/lttv/lttv/tracecontext.c +++ b/ltt/branches/poly/lttv/lttv/tracecontext.c @@ -1250,11 +1250,13 @@ gint lttv_traceset_context_pos_pos_compare( int i, j; int ret = 0; - if(pos1->tfcp->len == 0) { - if(pos2->tfcp->len == 0) return 0; - else return 1; + if(ltt_time_compare(pos1->timestamp, ltt_time_infinite) == 0) { + if(ltt_time_compare(pos2->timestamp, ltt_time_infinite) == 0) + return 0; + else + return 1; } - if(pos2->tfcp->len == 0) + if(ltt_time_compare(pos2->timestamp, ltt_time_infinite) == 0) return -1; for(i=0;itfcp->len;i++) {