From 4e74edf8d43f57497f98fe27a1f011c8857b918c Mon Sep 17 00:00:00 2001 From: William Woodall Date: Thu, 15 Sep 2016 15:41:48 -0700 Subject: [PATCH] fixup comment --- rclcpp/src/rclcpp/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rclcpp/src/rclcpp/client.cpp b/rclcpp/src/rclcpp/client.cpp index 3755e97..95667b9 100644 --- a/rclcpp/src/rclcpp/client.cpp +++ b/rclcpp/src/rclcpp/client.cpp @@ -80,7 +80,8 @@ ClientBase::wait_for_service_nanoseconds(std::chrono::nanoseconds timeout) throw InvalidNodeError(); } auto event = node_ptr->get_graph_event(); - // update the time even on the first loop to account for time in first server_is_read() + // update the time even on the first loop to account for time spent in the first call + // to this->server_is_ready() std::chrono::nanoseconds time_to_wait = timeout - (std::chrono::steady_clock::now() - start); if (timeout > std::chrono::nanoseconds(0) && time_to_wait < std::chrono::nanoseconds(0)) { // Do not allow the time_to_wait to become negative when timeout was originally positive.