[resource_quota] Fix small mistake in tuning (#30551)

pull/29835/head
Craig Tiller 2 years ago committed by GitHub
parent 3cea62f686
commit 5dd8d2ba9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/lib/resource_quota/memory_quota.h

@ -523,8 +523,8 @@ class MemoryQuota final
// Return true if the instantaneous memory pressure is high.
bool IsMemoryPressureHigh() const {
static constexpr double kMemoryPressureHighThreshold = 0.9;
return memory_quota_->GetPressureInfo().pressure_control_value >
static constexpr double kMemoryPressureHighThreshold = 1.0;
return memory_quota_->GetPressureInfo().instantaneous_pressure >
kMemoryPressureHighThreshold;
}

Loading…
Cancel
Save