Fix: return event timestamp in _timestamp_at_pos
authorAntoine Busque <abusque@efficios.com>
Fri, 22 Apr 2016 20:58:00 +0000 (16:58 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 22 Apr 2016 20:58:22 +0000 (16:58 -0400)
Signed-off-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.025398 seconds and 4 git commands to generate.