Skip to content

Commit

Permalink
fix: codeflare top may fail due to Array(fractionalnumber)
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed May 3, 2023
1 parent f2f9a56 commit cee32ec
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ export default class JobBox extends React.PureComponent<Props> {
<React.Fragment>
{this.nCells(hosts.length, "node", "nodes", this.styleOfGroup({ color: "yellow" }))}
{ValidResources.filter((resource) => stats.tot[resource] !== 0).map((resource) => this.resourceLine(resource))}
{this.nCells(pods.length / hosts.length, "worker/node", "workers/node", this.styleOfGroup({ color: "white" }))}
{this.nCells(
Math.round(pods.length / hosts.length),
"worker/node",
"workers/node",
this.styleOfGroup({ color: "white" })
)}
</React.Fragment>
)
}
Expand Down

0 comments on commit cee32ec

Please sign in to comment.