🐛 Fix memory conversion bug

This commit is contained in:
Andreas Dinauer 2026-01-06 11:28:00 +01:00
parent 487dd72423
commit 63b8d65166

View File

@ -50,7 +50,7 @@ public class TopNodesService
Long absoluteMemory = extractMemory(parts[3]);
Integer relativeMemory = extractInteger(parts[4]);
Integer totalCpu = Integer.parseInt(node.getStatus().getAllocatable().get("cpu").getAmount()) * 1000;
Long totalMemory = extractMemory(node.getStatus().getAllocatable().get("memory").getAmount());
Long totalMemory = extractMemory(node.getStatus().getAllocatable().get("memory").toString());
Integer totalPods = podsOnNodes.get(node.getMetadata().getName());
NodeDiskMetrics diskMetrics = nodeDiskMetrics.get(node.getMetadata().getName());
if (diskMetrics != null)