Skip to content

Commit

Permalink
Merge pull request #17916 from a-robinson/mathshame
Browse files Browse the repository at this point in the history
ui: fix "capacity used" percentage in summary bar
  • Loading branch information
a-robinson authored Aug 25, 2017
2 parents 7d6de7b + 1495641 commit a537e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ui/embedded.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function(props: ClusterSummaryProps) {
// Capacity math used in the summary status section.
const { capacityAvailable, capacityUsed } = props.nodesSummary.nodeSums;
const usableCapacity = capacityAvailable + capacityUsed;
const capacityPercent = usableCapacity !== 0 ? (capacityUsed / (usableCapacity * 100)) : 100;
const capacityPercent = usableCapacity !== 0 ? ((capacityUsed / usableCapacity) * 100) : 100;

return (
<div>
Expand Down

0 comments on commit a537e85

Please sign in to comment.