From b72637476b81bc4e2903a2e2d7e843ac9c0a4cea Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 24 Jan 2025 07:21:15 -0800 Subject: [PATCH 1/3] fix cpu frequency parsing --- Client/src/Pages/Infrastructure/index.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Client/src/Pages/Infrastructure/index.jsx b/Client/src/Pages/Infrastructure/index.jsx index 0bf367b99..07e02940d 100644 --- a/Client/src/Pages/Infrastructure/index.jsx +++ b/Client/src/Pages/Infrastructure/index.jsx @@ -149,8 +149,9 @@ function Infrastructure() { ]; const monitorsAsRows = monitors.map((monitor) => { + console.log(monitor); const processor = - ((monitor.checks[0]?.cpu?.usage_frequency ?? 0) / 1000).toFixed(2) + " GHz"; + ((monitor.checks[0]?.cpu?.frequency ?? 0) / 1000).toFixed(2) + " GHz"; const cpu = (monitor?.checks[0]?.cpu.usage_percent ?? 0) * 100; const mem = (monitor?.checks[0]?.memory.usage_percent ?? 0) * 100; const disk = (monitor?.checks[0]?.disk[0]?.usage_percent ?? 0) * 100; @@ -181,6 +182,7 @@ function Infrastructure() { }); let isActuallyLoading = isLoading && monitors?.length === 0; + console.log(monitorsAsRows); return ( Date: Fri, 24 Jan 2025 07:46:56 -0800 Subject: [PATCH 2/3] Update Client/src/Pages/Infrastructure/index.jsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mert Şişmanoğlu --- Client/src/Pages/Infrastructure/index.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/Client/src/Pages/Infrastructure/index.jsx b/Client/src/Pages/Infrastructure/index.jsx index 07e02940d..190478f36 100644 --- a/Client/src/Pages/Infrastructure/index.jsx +++ b/Client/src/Pages/Infrastructure/index.jsx @@ -149,7 +149,6 @@ function Infrastructure() { ]; const monitorsAsRows = monitors.map((monitor) => { - console.log(monitor); const processor = ((monitor.checks[0]?.cpu?.frequency ?? 0) / 1000).toFixed(2) + " GHz"; const cpu = (monitor?.checks[0]?.cpu.usage_percent ?? 0) * 100; From e693e10d7cb3012aaa019b72846231f68664f00a Mon Sep 17 00:00:00 2001 From: Alexander Holliday Date: Fri, 24 Jan 2025 07:47:24 -0800 Subject: [PATCH 3/3] Update Client/src/Pages/Infrastructure/index.jsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mert Şişmanoğlu --- Client/src/Pages/Infrastructure/index.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/Client/src/Pages/Infrastructure/index.jsx b/Client/src/Pages/Infrastructure/index.jsx index 190478f36..fbfae6a3c 100644 --- a/Client/src/Pages/Infrastructure/index.jsx +++ b/Client/src/Pages/Infrastructure/index.jsx @@ -181,7 +181,6 @@ function Infrastructure() { }); let isActuallyLoading = isLoading && monitors?.length === 0; - console.log(monitorsAsRows); return (