🐛 Fix memory conversion bug
This commit is contained in:
parent
487dd72423
commit
63b8d65166
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user