YARN-10469. YARN-UI2 The accuracy of the percentage values in the same chart on the YARN 'Cluster OverView' page are inconsistent (#2401)
This commit is contained in:
parent
4890b855ec
commit
deea5d8f2b
|
@ -48,7 +48,7 @@ export default BaseUsageDonutChart.extend({
|
|||
|
||||
usageByApps.push({
|
||||
label: "Available",
|
||||
value: avail.toFixed(4)
|
||||
value: avail.toFixed(2)
|
||||
});
|
||||
|
||||
this.colors = ColorUtils.getColors(usageByApps.length, ["others", "good"], true);
|
||||
|
|
|
@ -51,7 +51,7 @@ export default BaseUsageDonutChart.extend({
|
|||
|
||||
usageByQueues.push({
|
||||
label: "Available",
|
||||
value: avail.toFixed(4)
|
||||
value: avail.toFixed(2)
|
||||
});
|
||||
|
||||
this.colors = ColorUtils.getColors(usageByQueues.length, ["others", "good"], true);
|
||||
|
|
Loading…
Reference in New Issue