diff --git a/include/core/processor/processor_base.h b/include/core/processor/processor_base.h index 602c5dfc6297806597c0877c2626272a815102c2..566baa6f6bce8daa65ca61d2be720c6130ace8ba 100644 --- a/include/core/processor/processor_base.h +++ b/include/core/processor/processor_base.h @@ -345,13 +345,13 @@ T Buffer<T>::select(const TimeStamp& _time_stamp, const Scalar& _time_tolerance) bool prev_exists = (post != container_.begin()); bool post_exists = (post != container_.end()); - bool post_ok = post_exists && checkTimeTolerance(post->first, _time_stamp, _time_tolerance); + bool post_ok = post_exists && simpleCheckTimeTolerance(post->first, _time_stamp, _time_tolerance); if (prev_exists) { Buffer<T>::Iterator prev = std::prev(post); - bool prev_ok = checkTimeTolerance(prev->first, _time_stamp, _time_tolerance); + bool prev_ok = simpleCheckTimeTolerance(prev->first, _time_stamp, _time_tolerance); if (prev_ok && !post_ok) return prev->second; @@ -386,7 +386,7 @@ T Buffer<T>::selectFirstBefore(const TimeStamp& _time_stamp, const Scalar& _time return container_.begin()->second; // Return first pack if despite being newer, it is within the time tolerance - if (checkTimeTolerance(container_.begin()->first, _time_stamp, _time_tolerance)) + if (simpleCheckTimeTolerance(container_.begin()->first, _time_stamp, _time_tolerance)) return container_.begin()->second; // otherwise return nullptr (no pack before the provided ts or within the tolerance was found)