From 63a284f4b29ad812da9129d484ff7f2380b92889 Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 29 Sep 2025 14:22:03 -0300 Subject: [PATCH] Fix pod_count handling - it's already an integer from Kubernetes API --- app/services/historical_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/historical_analysis.py b/app/services/historical_analysis.py index dc299e0..a4b703a 100644 --- a/app/services/historical_analysis.py +++ b/app/services/historical_analysis.py @@ -609,7 +609,7 @@ class HistoricalAnalysisService: 'memory_requests': self._safe_float(memory_requests[0][1]) if memory_requests and len(memory_requests) > 0 else 0, 'cpu_utilization': cpu_utilization, 'memory_utilization': memory_utilization, - 'pod_count': int(self._safe_float(pod_count[0][1])) if pod_count and len(pod_count) > 0 else 0, + 'pod_count': pod_count, 'recommendations': recommendations }