get rid of unused discarded events computation
[lttngtop.git] / src / lttng-live-functions.c
index 83be1e95d104b8bff5fbf28fbddf8b5a9cffadbb..42a7241ba82276b0779020a1a4b7eba8c741126b 100644 (file)
@@ -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) {
This page took 0.02396 seconds and 4 git commands to generate.