Fix: return event timestamp in _timestamp_at_pos
[babeltrace.git] / bindings / python / babeltrace.i.in
index f07f2fb7af025f321e3664c39d0f424121f2a39c..3dc1791010dc4202b34cb1346ca1a64b0ec9b20d 100644 (file)
@@ -271,7 +271,10 @@ class TraceCollection:
                ev_ptr = _bt_ctf_iter_read_event(ctf_it_ptr)
                _bt_ctf_iter_destroy(ctf_it_ptr)
                if ev_ptr is None:
-                       return None;
+                       return None
+               ev = Event.__new__(Event)
+               ev._e = ev_ptr
+               return ev.timestamp
 
        def _events(self, begin_pos_ptr, end_pos_ptr):
                ctf_it_ptr = _bt_ctf_iter_create(self._tc, begin_pos_ptr, end_pos_ptr)
This page took 0.023317 seconds and 4 git commands to generate.