From: Francis Deslauriers Date: Thu, 9 Aug 2012 15:38:39 +0000 (-0400) Subject: Make use of the ltt_time_zero X-Git-Tag: v1.5-beta1~46 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=eda74fe8155fe06b436256cae5199bb367711ec4;p=lttv.git Make use of the ltt_time_zero Signed-off-by: Francis Deslauriers Signed-off-by: Yannick Brosseau --- diff --git a/lttv/lttv/traceset.c b/lttv/lttv/traceset.c index 7a9eb8b4..af65190e 100644 --- a/lttv/lttv/traceset.c +++ b/lttv/lttv/traceset.c @@ -70,8 +70,8 @@ LttvTraceset *lttv_traceset_new(void) ts->state_trace_handle_index = g_ptr_array_new(); ts->has_precomputed_states = FALSE; - ts->time_span.start_time = ltt_time_from_uint64(0); - ts->time_span.end_time = ltt_time_from_uint64(0); + ts->time_span.start_time = ltt_time_zero; + ts->time_span.end_time = ltt_time_zero; return ts; } @@ -600,7 +600,7 @@ 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_from_uint64(0)) == 0 && ts->traces->len > 0){ + 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( @@ -619,7 +619,7 @@ TimeInterval lttv_traceset_get_time_span_real(LttvTraceset *ts) */ TimeInterval lttv_traceset_get_time_span(LttvTraceset *ts) { - if(ltt_time_compare(ts->time_span.start_time, ltt_time_from_uint64(0)) == 0){ + if(ltt_time_compare(ts->time_span.start_time, ltt_time_zero) == 0){ ts->time_span.start_time =ltt_time_from_uint64( lttv_traceset_get_timestamp_begin(ts)); ts->time_span.end_time = ltt_time_from_uint64(