bt_clock_class_create(): accept mandatory trace class
[babeltrace.git] / plugins / ctf / fs-src / data-stream-file.c
index 517bfec6ade205f1bc1b8f8dcf3ffa9f28ebdfa1..2865f6020d9b2828a1a320f73ebd54bed164dc6b 100644 (file)
@@ -293,11 +293,12 @@ struct ctf_fs_ds_index_entry *ctf_fs_ds_index_add_new_entry(
 }
 
 static
-int convert_cycles_to_ns(bt_clock_class *clock_class,
+int convert_cycles_to_ns(struct ctf_clock_class *clock_class,
                uint64_t cycles, int64_t *ns)
 {
-       return bt_clock_class_cycles_to_ns_from_origin(clock_class, cycles,
-                                                      ns);
+       return bt_util_clock_cycles_to_ns_from_origin(cycles,
+                       clock_class->frequency, clock_class->offset_seconds,
+                       clock_class->offset_cycles, ns);
 }
 
 static
This page took 0.023727 seconds and 4 git commands to generate.