get rid of unused discarded events computation
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 7 Feb 2014 01:20:11 +0000 (20:20 -0500)
committerJulien Desfossez <jdesfossez@efficios.com>
Fri, 7 Feb 2014 01:20:27 +0000 (20:20 -0500)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/lttng-live-functions.c

index 83be1e9..42a7241 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.029486 seconds and 4 git commands to generate.