Skip to content

Commit

Permalink
Merge pull request #821 from threefoldtech/development_order_resources
Browse files Browse the repository at this point in the history
Adjust the order of the resources in the node details
  • Loading branch information
AhmedHanafy725 authored Jul 18, 2023
2 parents 05b88b2 + c097a9a commit 9366ed8
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 9366ed8

Please sign in to comment.