From 7115402e8f4d8e7bba0e1d86e501f36bdce8279c Mon Sep 17 00:00:00 2001
From: PierreGtch <pierre.guetschel@gmail.com>
Date: Mon, 3 Jun 2019 10:39:22 +0200
Subject: [PATCH] Small fix

---
 include/core/processor/processor_base.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/core/processor/processor_base.h b/include/core/processor/processor_base.h
index 602c5dfc6..566baa6f6 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)
-- 
GitLab