From d0eeeb2d1af2705c5f4b3120d9117ff137bb900d Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 29 Sep 2025 21:02:53 -0300 Subject: [PATCH] Fix: corrigido erro JavaScript que impedia carregamento de dados do dashboard --- app/static/index.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index 554b227..ba3639b 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1664,7 +1664,7 @@ updateStats(data); // Update cluster health dashboard - updateClusterHealthDisplay(data, { distribution: data.qos_distribution }); + updateClusterHealthDisplay(data, data); showSuccess('Cluster status loaded successfully. Loading analysis...'); @@ -3083,7 +3083,7 @@ } else { overcommitText = '🟢 Normal'; } - document.getElementById('overcommitStatus').textContent = overcommitText; + // Overcommit status is now shown in individual metrics above // Update resource consumption updateResourceConsumption(healthData); @@ -3092,7 +3092,7 @@ updateTopConsumers(healthData.top_resource_consumers); // Update QoS distribution - updateQoSDistribution(qosData.distribution); + updateQoSDistribution(qosData); } function formatCpuValue(value) { @@ -3163,7 +3163,8 @@ }); } - function updateQoSDistribution(distribution) { + function updateQoSDistribution(qosData) { + const distribution = qosData.qos_distribution || {}; document.getElementById('guaranteedCount').textContent = distribution.Guaranteed || 0; document.getElementById('burstableCount').textContent = distribution.Burstable || 0; document.getElementById('besteffortCount').textContent = distribution.BestEffort || 0;