Skip to content

Commit

Permalink
Adjust the order of the resources in the node details
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHanafy725 committed Jul 18, 2023
1 parent 0274872 commit c097a9a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class NodeUsedResources extends Vue {
getNodeUsedResources() {
this.loader = true;
return ["cru", "sru", "hru", "mru"].map((i, idx) => {
return ["cru", "mru", "sru", "hru"].map((i, idx) => {
const value =
this.nodeStatistics.total[i] != 0
? ((this.nodeStatistics.used[i] + this.nodeStatistics.system[i]) / this.nodeStatistics.total[i]) * 100
Expand All @@ -90,7 +90,7 @@ export default class NodeUsedResources extends Vue {
this.resources = resources;
}
} else {
this.resources = ["cru", "sru", "hru", "mru"].map((i, idx) => {
this.resources = ["cru", "mru", "sru", "hru"].map((i, idx) => {
return { id: idx + 1, value: 0, name: this.renamedResources[idx] };
});
}
Expand Down

0 comments on commit c097a9a

Please sign in to comment.