projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle negative time and offset from Epoch
[babeltrace.git]
/
formats
/
ctf
/
ir
/
event.c
diff --git
a/formats/ctf/ir/event.c
b/formats/ctf/ir/event.c
index a36779de1e3576a6682c4084cdae646c21728ba5..3988b168e432551488ae8dd678109d4f13a52b44 100644
(file)
--- a/
formats/ctf/ir/event.c
+++ b/
formats/ctf/ir/event.c
@@
-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) {
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, ×tamp);
bt_put(mapped_clock);
bt_put(mapped_clock);
- if (
timestamp == (uint64_t) -1ULL
) {
+ if (
ret
) {
goto end;
}
goto end;
}
This page took
0.023524 seconds
and
4
git commands to generate.