diff --git a/offloading-cacher/cache.hpp b/offloading-cacher/cache.hpp index cce0439..50e9c29 100644 --- a/offloading-cacher/cache.hpp +++ b/offloading-cacher/cache.hpp @@ -359,9 +359,8 @@ inline std::unique_ptr dsacache::Cache::GetFromCache(uint8_ if (search != cache_state_[dst_node].end()) { // now check whether the sizes match - // TODO: second.size_ >= size would also work - if (search->second.size_ == size) { + if (search->second.size_ >= size) { std::cout << "[+] Found Cached version for 0x" << std::hex << (uint64_t)src << std::dec << std::endl; // return a unique copy of the entry which uses the object