Fix: corrigido conversão de capacidade de memória no JavaScript (já vem em GiB da API)

This commit is contained in:
2025-09-29 20:06:01 -03:00
parent fefe65f586
commit c14a1e2674

View File

@@ -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) + '%';