diff options
-rw-r--r-- | INFO.yaml | 2 | ||||
-rw-r--r-- | libtransport/src/hicn/transport/utils/min_filter.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -59,7 +59,7 @@ committers: timezone: '' - name: 'Angelo Mantellini' company: 'Cisco' - email:'manangel@cisco.com' + email: 'manangel@cisco.com' id: 'manang' timezone: '' tsc: diff --git a/libtransport/src/hicn/transport/utils/min_filter.h b/libtransport/src/hicn/transport/utils/min_filter.h index acb081edc..dcfd5652d 100644 --- a/libtransport/src/hicn/transport/utils/min_filter.h +++ b/libtransport/src/hicn/transport/utils/min_filter.h @@ -35,7 +35,7 @@ class MinFilter { template <typename R> TRANSPORT_ALWAYS_INLINE void pushBack(R&& value) { - if (by_arrival_.size() > size_) { + if (by_arrival_.size() >= size_) { by_order_.erase(by_arrival_.back()); by_arrival_.pop_back(); } |