current time update ok
[lttv.git] / ltt / branches / poly / lttv / lttv / tracecontext.c
index 73096b3d0e4dceeeb145abb949f038f41e470749..dd59a15a192332a9ae2f6fcf34a7586a05435458 100644 (file)
@@ -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;i<pos1->tfcp->len;i++) {
This page took 0.078559 seconds and 4 git commands to generate.