From 64f80d6f60f71b355cbc864cfe0b293217a947df Mon Sep 17 00:00:00 2001 From: kthui <18255193+kthui@users.noreply.github.com> Date: Tue, 30 May 2023 19:24:00 -0700 Subject: [PATCH] Fix bug --- src/rate_limiter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rate_limiter.cc b/src/rate_limiter.cc index d8021a04b..6ac1d6378 100644 --- a/src/rate_limiter.cc +++ b/src/rate_limiter.cc @@ -798,9 +798,9 @@ RateLimiter::ResourceManager::RemoveModelInstance( if (ditr != max_resources_.end()) { for (const auto& resource : resource_device_map.second) { auto ritr = ditr->second.find(resource.first); - if (ritr != ditr->second.end() && ritr->second >= resource.second) { + if (ritr != ditr->second.end() && ritr->second <= resource.second) { update_needed = true; - if (ritr->second > resource.second) { + if (ritr->second < resource.second) { LOG_ERROR << "Should not print this! Removing an instance with " "resource above max resource."; }