Filter 'Running' phase in getResourcePercentDisplay

This commit is contained in:
wizawu
2020-07-10 15:15:49 +08:00
parent 4b9c3bc4fc
commit 70483ec888
+1 -1
View File
@@ -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);
}