YARN-10640. Adjust the queue Configured capacity to Configured weight number for weight mode in UI. Contributed by Qi Zhu.
This commit is contained in:
parent
0774116756
commit
e82e7c597a
@ -159,7 +159,11 @@ private void renderQueueCapacityInfo(ResponseInfo ri, String label) {
|
|||||||
__("Used Capacity:",
|
__("Used Capacity:",
|
||||||
appendPercent(resourceUsages.getUsed(),
|
appendPercent(resourceUsages.getUsed(),
|
||||||
capacities.getUsedCapacity() / 100))
|
capacities.getUsedCapacity() / 100))
|
||||||
.__("Configured Capacity:",
|
.__(capacities.getWeight() != -1 ?
|
||||||
|
"Configured Weight:" :
|
||||||
|
"Configured Capacity:",
|
||||||
|
capacities.getWeight() != -1 ?
|
||||||
|
capacities.getWeight() :
|
||||||
capacities.getConfiguredMinResource() == null ?
|
capacities.getConfiguredMinResource() == null ?
|
||||||
Resources.none().toString() :
|
Resources.none().toString() :
|
||||||
capacities.getConfiguredMinResource().toString())
|
capacities.getConfiguredMinResource().toString())
|
||||||
|
Loading…
Reference in New Issue
Block a user