Skip to content

Commit

Permalink
Return double for get_rate
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
  • Loading branch information
Emerson Knapp committed Mar 26, 2021
1 parent fc56521 commit c5a0c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rosbag2_cpp/include/rosbag2_cpp/player_clock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class PlayerClock
/**
* Return the current playback rate.
*/
float get_rate() const;
double get_rate() const;

private:
std::unique_ptr<PlayerClockImpl> impl_;
Expand Down
2 changes: 1 addition & 1 deletion rosbag2_cpp/src/rosbag2_cpp/player_clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ bool PlayerClock::sleep_until(PlayerTimePoint until)
return now() >= until;
}

float PlayerClock::get_rate() const
double PlayerClock::get_rate() const
{
return impl_->rate;
}
Expand Down

0 comments on commit c5a0c06

Please sign in to comment.