Merge pull request #1625 from bluewave-labs/fix/fe/infra-page-cpu-freq

fix: cpu frequency parsing, resolves #1620
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-01-24 09:02:45 -08:00
commit 2625f9738f
1 file changed
+1 -1
+1 -1
View File
@@ -150,7 +150,7 @@ function Infrastructure() {
const monitorsAsRows = monitors.map((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;