Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill in message_info timestamps #163

Merged
merged 3 commits into from
Apr 23, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rmw_cyclonedds_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1979,6 +1979,10 @@ static rmw_ret_t rmw_take_int(
memcpy(
message_info->publisher_gid.data, &info.publication_handle,
sizeof(info.publication_handle));
message_info->source_timestamp = info.source_timestamp;
if(rcutils_system_time_now(&(message_info->received_timestamp)) != RCUTILS_RET_OK) {
wjwwood marked this conversation as resolved.
Show resolved Hide resolved
message_info->received_timestamp = 0;
}
}
#if REPORT_LATE_MESSAGES > 0
dds_time_t tnow = dds_time();
Expand Down