From 0e58e81875cc0aa6fae8262c2084632974994c57 Mon Sep 17 00:00:00 2001 From: Jon Eugster Date: Mon, 25 Nov 2024 12:38:16 +0100 Subject: [PATCH] parse CPU/MEM usage as integer. --- client/src/components/landing_page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/landing_page.tsx b/client/src/components/landing_page.tsx index e8cb440..af16964 100644 --- a/client/src/components/landing_page.tsx +++ b/client/src/components/landing_page.tsx @@ -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')