Skip to content

Commit

Permalink
fix: correct the received timestamp and use the system clock rather t…
Browse files Browse the repository at this point in the history
…han the ntp64 timestamp from zenoh's HLC (#338)
  • Loading branch information
YuanYuYuan authored Dec 13, 2024
1 parent a7187eb commit dd82e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void sub_data_handler(z_loaned_sample_t * sample, void * data)
sub_data->add_new_message(
std::make_unique<SubscriptionData::Message>(
slice,
z_timestamp_ntp64_time(z_sample_timestamp(sample)),
std::chrono::system_clock::now().time_since_epoch().count(),
std::move(attachment)),
topic_name);
}
Expand Down

0 comments on commit dd82e84

Please sign in to comment.