From 5dd8d2ba9b952f8b0b2e99f08b6e6633c24c8789 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 11 Aug 2022 13:54:26 -0700 Subject: [PATCH] [resource_quota] Fix small mistake in tuning (#30551) --- src/core/lib/resource_quota/memory_quota.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lib/resource_quota/memory_quota.h b/src/core/lib/resource_quota/memory_quota.h index 8f83de1a718..67a14b94bd5 100644 --- a/src/core/lib/resource_quota/memory_quota.h +++ b/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; }