Skip to content

Commit 8b88bd2

Browse files
committed
tweak comment
1 parent bb133c0 commit 8b88bd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/top.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ export async function topPods(api: CoreV1Api, metrics: Metrics, namespace?: stri
115115
let podLimitsMem: number | bigint = 0;
116116

117117
pod.spec!.containers.forEach((container) => {
118-
// get the the container CPU/Memory container.resources.requests
118+
// get the the container CPU/Memory container.resources.requests/limits
119119
const containerCpuTotal = totalCPUForContainer(container);
120120
const containerMemTotal = totalMemoryForContainer(container);
121121

122-
// sum each container's CPU/Memory container.resources.requests
123-
// to get the pod's overall request limit
122+
// sum each container's CPU/Memory container.resources.requests/limits
123+
// to get the pod's overall requests/limits
124124
podRequestsCPU = add(podRequestsCPU, containerCpuTotal.request);
125125
podLimitsCPU = add(podLimitsCPU, containerCpuTotal.limit);
126126

0 commit comments

Comments
 (0)