Skip to content

Commit

Permalink
UPDATE: Debug and error handling (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabasian authored Jun 20, 2022
1 parent d9e3b5f commit 14670b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion launcher/src/components/UI/the-control/TheCpu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default {
const response = await ControlService.getServerVitals();
this.cpuValue = Math.floor(await response.cpuUsage.stdout);
} catch (error) {
console.log(error);
this.cpuValueMet();
}
},
Expand Down
6 changes: 3 additions & 3 deletions launcher/src/components/UI/the-control/TheNetwork.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ export default {
async networkMet() {
try {
const response = await ControlService.getServerVitals();
this.receiveValue = await response.recievedData.stdout;
this.transmitValue = await response.transmitData.stdout;
this.receiveValue = Math.floor(await response.recievedData.stdout);
this.transmitValue = Math.floor(await response.transmitData.stdout);
} catch (error) {
console.log("Error");
console.log("Loading...");
}
},
},
Expand Down

0 comments on commit 14670b0

Please sign in to comment.