[Positioner] CR timeout computed with time_received
In Stock::delete_calibration_requests_older_than(), use request.time_received instead of request.time_sent to compute the timeout.
This commit is contained in:
parent
573b62f3ba
commit
7da5196627
|
@ -521,7 +521,7 @@ void Stock::delete_calibration_requests_older_than(int timeout)
|
|||
calibration_requests.begin() ;
|
||||
while (cr != calibration_requests.end())
|
||||
{
|
||||
const Timestamp &elapsed = cr->get_time_sent().elapsed() ;
|
||||
const Timestamp &elapsed = cr->get_time_received().elapsed() ;
|
||||
uint64_t elapsed_sec = static_cast<uint64_t>(elapsed) / 1000 ;
|
||||
if (elapsed_sec >= static_cast<unsigned int>(timeout))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue