Fix: assign the current clock for mmap traces
[babeltrace.git] / formats / ctf / ctf.c
index 69917f7fb5d9cfc8dcaf246128f77d93557d7c6d..69600d1f8ca1b6e21e858eee326a2c236e0b2165 100644 (file)
@@ -1746,6 +1746,11 @@ int ctf_open_mmap_stream_read(struct ctf_trace *td,
        if (ret)
                goto error_index;
 
+       /*
+        * For now, only a single slock is supported.
+        */
+       file_stream->parent.current_clock = td->single_clock;
+
        /* Add stream file to stream class */
        g_ptr_array_add(file_stream->parent.stream_class->streams,
                        &file_stream->parent);
This page took 0.022786 seconds and 4 git commands to generate.