From: Julien Desfossez Date: Fri, 7 Feb 2014 01:20:11 +0000 (-0500) Subject: get rid of unused discarded events computation X-Git-Tag: v0.3~63 X-Git-Url: http://git.lttng.org/?p=lttngtop.git;a=commitdiff_plain;h=6c7065a7d4c9d1a0e4d64201c7aa0b18bf63b255 get rid of unused discarded events computation Signed-off-by: Julien Desfossez --- diff --git a/src/lttng-live-functions.c b/src/lttng-live-functions.c index 83be1e9..42a7241 100644 --- a/src/lttng-live-functions.c +++ b/src/lttng-live-functions.c @@ -812,27 +812,9 @@ retry: file_stream->parent.real_timestamp = ctf_get_real_timestamp( &file_stream->parent, packet_index.timestamp_end); } else { - /* Append to the cycles_index. */ - g_array_append_val(file_stream->pos.packet_cycles_index, - packet_index); - /* Convert the timestamps and append to the real_index. */ - packet_index.timestamp_begin = ctf_get_real_timestamp( - &file_stream->parent, packet_index.timestamp_begin); - packet_index.timestamp_end = ctf_get_real_timestamp( - &file_stream->parent, packet_index.timestamp_end); - g_array_append_val(file_stream->pos.packet_real_index, - packet_index); - - //compute_discarded_events(file_stream, pos); - - packet_index = g_array_index(pos->packet_cycles_index, - struct packet_index, pos->cur_index); file_stream->parent.cycles_timestamp = packet_index.timestamp_begin; - - packet_index = g_array_index(pos->packet_real_index, - struct packet_index, pos->cur_index); - file_stream->parent.real_timestamp = packet_index.timestamp_begin; - ++pos->cur_index; + file_stream->parent.real_timestamp = ctf_get_real_timestamp( + &file_stream->parent, packet_index.timestamp_begin); } if (pos->packet_size == 0 || pos->offset == EOF) {