diff options
author | michele papalini <micpapal@cisco.com> | 2020-02-05 17:15:32 +0100 |
---|---|---|
committer | michele papalini <micpapal@cisco.com> | 2020-02-05 17:15:32 +0100 |
commit | 91121807183382ec746b2cd8979d9991c300cd99 (patch) | |
tree | 8d91ade6681e8093142d49afd24223a55a7f9f59 /libtransport/src | |
parent | 37fd13f62206f9539b3102a2ceba2f96e1be2538 (diff) |
[HICN-502] fix min_filter max size
Signed-off-by: michele papalini <micpapal@cisco.com>
Change-Id: I108240376b67c221d440f43496a17513b89db0a3
Diffstat (limited to 'libtransport/src')
-rw-r--r-- | libtransport/src/hicn/transport/utils/min_filter.h | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |