From 70483ec8889fe8293434c8a900ce4ed1b4ff3265 Mon Sep 17 00:00:00 2001 From: wizawu Date: Fri, 10 Jul 2020 15:14:27 +0800 Subject: [PATCH] Filter 'Running' phase in getResourcePercentDisplay --- client/src/components/nodesPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/nodesPanel.js b/client/src/components/nodesPanel.js index 81f89e6..45b2e6f 100644 --- a/client/src/components/nodesPanel.js +++ b/client/src/components/nodesPanel.js @@ -115,7 +115,7 @@ function getPercentDisplay(node, metrics, resource) { } function getResourcePercentDisplay(node, pods, resource, type) { - const used = getNodeResourceValue(node, pods, resource, type); + const used = getNodeResourceValue(node, pods, resource, type, ["Running"]); return percent(node, used, resource); }