From 75fea4841dd198bed044b8790d63744f00a20c98 Mon Sep 17 00:00:00 2001 From: Kamadek <9414918+kamadek-sys@users.noreply.github.com> Date: Tue, 24 Oct 2023 16:05:05 +0200 Subject: [PATCH] Fixed typo in topPods command --- src/top.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/top.ts b/src/top.ts index 9b38ea64fb..e5f7b33dfc 100644 --- a/src/top.ts +++ b/src/top.ts @@ -123,7 +123,7 @@ export async function topPods(api: CoreV1Api, metrics: Metrics, namespace?: stri podRequestsCPU = add(podRequestsCPU, containerCpuTotal.request); podLimitsCPU = add(podLimitsCPU, containerCpuTotal.limit); - podRequestsMem = add(podLimitsMem, containerMemTotal.request); + podRequestsMem = add(podRequestsMem, containerMemTotal.request); podLimitsMem = add(podLimitsMem, containerMemTotal.limit); // Find the container metrics by container.name