From c14a1e2674e9eba667af4b121b8051b4dde53794 Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 29 Sep 2025 20:06:01 -0300 Subject: [PATCH] =?UTF-8?q?Fix:=20corrigido=20convers=C3=A3o=20de=20capaci?= =?UTF-8?q?dade=20de=20mem=C3=B3ria=20no=20JavaScript=20(j=C3=A1=20vem=20e?= =?UTF-8?q?m=20GiB=20da=20API)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/index.html b/app/static/index.html index 8c4330d..19a0cd4 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -3012,7 +3012,7 @@ // Memory - Convert bytes to GiB const memoryRequestsGiB = healthData.cluster_memory_requests / (1024 * 1024 * 1024); - const memoryCapacityGiB = healthData.cluster_memory_capacity / (1024 * 1024 * 1024); + const memoryCapacityGiB = healthData.cluster_memory_capacity; // Already in GiB from API const memoryUsagePercent = (memoryRequestsGiB / memoryCapacityGiB) * 100; document.getElementById('memoryUsageBar').style.width = Math.min(memoryUsagePercent, 100) + '%';