Use BT_SEEK_LAST
[lttv.git] / lttv / lttv / traceset.c
index f91010e02aeecc84deafadd8ee80ad826e7df05f..99b34aee59e197c7db21c6d2bd435d7000eff8c0 100644 (file)
@@ -520,11 +520,11 @@ guint64 lttv_traceset_get_timestamp_last_event(LttvTraceset *ts)
        last_position.bt_pos = &pos;
        last_position.timestamp = G_MAXUINT64;
        last_position.cpu_id = INT_MAX;
-#ifdef BABEL_HAS_SEEK_LAST     
+
        /* Assign iterator to the last event of the traces */  
        last_position.bt_pos->type = BT_SEEK_LAST;
        last_position.iter = ts->iter;
-#endif
+
        return lttv_traceset_position_get_timestamp(&last_position);
 }
 
@@ -599,19 +599,16 @@ 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));
                ts->time_span.end_time = ltt_time_from_uint64(
-                                       lttv_traceset_get_timestamp_end(ts));
+                                       lttv_traceset_get_timestamp_last_event(ts));    
        }
         return ts->time_span;
-#else
-       return lttv_traceset_get_time_span(ts);
-#endif
 }
 
 /*
This page took 0.036531 seconds and 4 git commands to generate.