From e7a5afafe72466a4510a7a384565c96475378c2a Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 29 Sep 2025 21:15:05 -0300 Subject: [PATCH] =?UTF-8?q?Fix:=20corrigido=20toler=C3=A2ncia=20excessiva?= =?UTF-8?q?=20na=20valida=C3=A7=C3=A3o=20de=20ratio=20CPU/Memory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/validation_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/validation_service.py b/app/services/validation_service.py index e1bf6bd..1ddb165 100644 --- a/app/services/validation_service.py +++ b/app/services/validation_service.py @@ -149,7 +149,7 @@ class ValidationService: if request_value > 0: ratio = limit_value / request_value - if ratio > self.cpu_ratio * 1.5: # 50% de tolerância + if ratio > self.cpu_ratio: # Sem tolerância excessiva return ResourceValidation( pod_name=pod_name, namespace=namespace, @@ -194,7 +194,7 @@ class ValidationService: if request_value > 0: ratio = limit_value / request_value - if ratio > self.memory_ratio * 1.5: # 50% de tolerância + if ratio > self.memory_ratio: # Sem tolerância excessiva return ResourceValidation( pod_name=pod_name, namespace=namespace,