diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/app-usage-donut-chart.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/app-usage-donut-chart.js index c72d93451ef..f6288378349 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/app-usage-donut-chart.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/app-usage-donut-chart.js @@ -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); @@ -56,4 +56,4 @@ export default BaseUsageDonutChart.extend({ this.renderDonutChart(usageByApps, this.get("title"), this.get("showLabels"), this.get("middleLabel"), "100%", "%"); }, -}); \ No newline at end of file +}); diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/queue-usage-donut-chart.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/queue-usage-donut-chart.js index c939aaf80ad..5426838b2f3 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/queue-usage-donut-chart.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/queue-usage-donut-chart.js @@ -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); @@ -64,4 +64,4 @@ export default BaseUsageDonutChart.extend({ this.initChart(); this.draw(); }, -}); \ No newline at end of file +});