Pretty-print 0-value timestamps
[babeltrace.git] / formats / ctf / ctf.c
index 6e45ea3612f603664cbee66fb5d0d90e512f215a..28be4fd0cad21357a105f9c4a6984fd7e86f5b7f 100644 (file)
@@ -156,14 +156,17 @@ int ctf_read_event(struct stream_pos *ppos, struct ctf_stream *stream)
                }
 
                /* lookup timestamp */
+               stream->has_timestamp = 0;
                integer_definition = lookup_integer(&stream->stream_event_header->p, "timestamp", FALSE);
                if (integer_definition) {
                        ctf_update_timestamp(stream, integer_definition);
+                       stream->has_timestamp = 1;
                } else {
                        if (variant) {
                                integer_definition = lookup_integer(variant, "timestamp", FALSE);
                                if (integer_definition) {
                                        ctf_update_timestamp(stream, integer_definition);
+                                       stream->has_timestamp = 1;
                                }
                        }
                }
This page took 0.023437 seconds and 4 git commands to generate.