Skip to content

Commit

Permalink
YARN-10469. YARN-UI2 The accuracy of the percentage values in the sam…
Browse files Browse the repository at this point in the history
…e chart on the YARN 'Cluster OverView' page are inconsistent (#2401)
  • Loading branch information
echohlne authored Nov 2, 2020
1 parent 4890b85 commit deea5d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ 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);

this.renderDonutChart(usageByApps, this.get("title"), this.get("showLabels"),
this.get("middleLabel"), "100%", "%");
},
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -64,4 +64,4 @@ export default BaseUsageDonutChart.extend({
this.initChart();
this.draw();
},
});
});

0 comments on commit deea5d8

Please sign in to comment.