From 161c614c38428d1465de406b304629b58ce4094c Mon Sep 17 00:00:00 2001 From: "Robin E.R. Davies" Date: Sun, 11 Jan 2026 17:56:23 -0500 Subject: [PATCH] Don't display temperature on machines without temperature sensores. --- vite/src/pipedal/JackHostStatus.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite/src/pipedal/JackHostStatus.tsx b/vite/src/pipedal/JackHostStatus.tsx index 67239e9..de5dee2 100644 --- a/vite/src/pipedal/JackHostStatus.tsx +++ b/vite/src/pipedal/JackHostStatus.tsx @@ -27,6 +27,10 @@ const GREEN_COLOR = isDarkMode() ? "rgba(255,255,255,0.7)" : "#666"; function tempDisplay(mC: number): string { + if (mC <= -40000) // no tempoerature available. + { + return ""; + } return (mC / 1000).toFixed(1) + "\u00B0C"; // degrees C. } function cpuDisplay(cpu: number): string {