Don't display temperature on machines without temperature sensores.

This commit is contained in:
Robin E.R. Davies
2026-01-11 17:56:23 -05:00
parent ec0496be09
commit 161c614c38
+4
View File
@@ -27,6 +27,10 @@ const GREEN_COLOR = isDarkMode() ? "rgba(255,255,255,0.7)" : "#666";
function tempDisplay(mC: number): string { function tempDisplay(mC: number): string {
if (mC <= -40000) // no tempoerature available.
{
return "";
}
return (mC / 1000).toFixed(1) + "\u00B0C"; // degrees C. return (mC / 1000).toFixed(1) + "\u00B0C"; // degrees C.
} }
function cpuDisplay(cpu: number): string { function cpuDisplay(cpu: number): string {