Handle negative time and offset from Epoch
[babeltrace.git] / formats / ctf / ir / event.c
index a36779de1e3576a6682c4084cdae646c21728ba5..3988b168e432551488ae8dd678109d4f13a52b44 100644 (file)
@@ -1141,11 +1141,11 @@ int bt_ctf_event_populate_event_header(struct bt_ctf_event *event)
                        timestamp_field_type);
                bt_put(timestamp_field_type);
                if (mapped_clock) {
-                       uint64_t timestamp = bt_ctf_clock_get_time(
-                               mapped_clock);
+                       int64_t timestamp;
 
+                       ret = bt_ctf_clock_get_time(mapped_clock, &timestamp);
                        bt_put(mapped_clock);
-                       if (timestamp == (uint64_t) -1ULL) {
+                       if (ret) {
                                goto end;
                        }
 
This page took 0.022604 seconds and 4 git commands to generate.