Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kthui committed Jun 1, 2023
1 parent eacf973 commit 6460553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rate_limiter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand Down

0 comments on commit 6460553

Please sign in to comment.