Skip to content

Commit

Permalink
parse CPU/MEM usage as integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Nov 25, 2024
1 parent f0aa6b5 commit 0e58e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/landing_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ function LandingPage() {
}
if (line2) {
let values = line2.split(',')
setUsageCPU(100 * Number(values[0]));
setUsageMem(100 * Number(values[1]));
setUsageCPU(100 * parseInt(values[0]));
setUsageMem(100 * parseInt(values[1]));
}
}).catch(err => {
console.info('server stats unavailable')
Expand Down

0 comments on commit 0e58e81

Please sign in to comment.