From 91121807183382ec746b2cd8979d9991c300cd99 Mon Sep 17 00:00:00 2001 From: michele papalini Date: Wed, 5 Feb 2020 17:15:32 +0100 Subject: [HICN-502] fix min_filter max size Signed-off-by: michele papalini Change-Id: I108240376b67c221d440f43496a17513b89db0a3 --- libtransport/src/hicn/transport/utils/min_filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtransport') 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 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(); } -- cgit 1.2.3-korg