Skip to content

Commit

Permalink
Remove cast and change type of clock.
Browse files Browse the repository at this point in the history
  • Loading branch information
KerstinKeller committed Jan 31, 2025
1 parent cf38d1f commit cee3f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ecal/core/include/ecal/pubsub/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace eCAL
const void* buffer = nullptr; //!< payload buffer, containing the sent data
size_t buffer_size = 0; //!< payload buffer size
int64_t send_timestamp = 0; //!< publisher send timestamp in µs
uint64_t send_clock = 0; //!< publisher send clock. Each publisher increases the counter by one, every time a message is sent. It can be used to detect message drops.
int64_t send_clock = 0; //!< publisher send clock. Each publisher increases the counter by one, every time a message is sent. It can be used to detect message drops.
};

/**
Expand Down
2 changes: 1 addition & 1 deletion ecal/core/src/pubsub/ecal_subscriber_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ namespace eCAL
// prepare data struct
SReceiveCallbackData cb_data;
cb_data.buffer = static_cast<const void*>(payload_);
cb_data.buffer_size = long(size_);
cb_data.buffer_size = size_;
cb_data.send_timestamp = time_;
cb_data.send_clock = clock_;

Expand Down

0 comments on commit cee3f05

Please sign in to comment.