Be more specific in the no SEEK_LAST fallback
authorYannick Brosseau <yannick.brosseau@gmail.com>
Tue, 14 Aug 2012 14:58:03 +0000 (10:58 -0400)
committerYannick Brosseau <yannick.brosseau@gmail.com>
Tue, 14 Aug 2012 14:58:03 +0000 (10:58 -0400)
Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
lttv/lttv/traceset.c

index f91010e02aeecc84deafadd8ee80ad826e7df05f..7e86c5b764b8e2c0e1f0787f6826b2e99c23932a 100644 (file)
@@ -599,19 +599,20 @@ guint64 lttv_traceset_get_timestamp_end(LttvTraceset *traceset)
  */
 TimeInterval lttv_traceset_get_time_span_real(LttvTraceset *ts)
 {
-#ifdef BABEL_HAS_SEEK_LAST     
+
 
        if(ltt_time_compare(ts->time_span.start_time, 
                                ltt_time_zero) == 0 && ts->traces->len > 0){
                ts->time_span.start_time = ltt_time_from_uint64(
                                lttv_traceset_get_timestamp_first_event(ts));
+#ifdef BABEL_HAS_SEEK_LAST     
                ts->time_span.end_time = ltt_time_from_uint64(
                                        lttv_traceset_get_timestamp_end(ts));
-       }
-        return ts->time_span;
 #else
-       return lttv_traceset_get_time_span(ts);
+               ts->time_span.end_time = lttv_traceset_get_time_span(ts).end_time;      
 #endif
+       }
+        return ts->time_span;
 }
 
 /*
This page took 0.024471 seconds and 4 git commands to generate.