diff --git a/src/devices/HardwareMonitor/OpenHardwareMonitorHttp.cs b/src/devices/HardwareMonitor/OpenHardwareMonitorHttp.cs index 952cc752d2..1c72003102 100644 --- a/src/devices/HardwareMonitor/OpenHardwareMonitorHttp.cs +++ b/src/devices/HardwareMonitor/OpenHardwareMonitorHttp.cs @@ -96,6 +96,7 @@ private void GetFullDataAndDecode(bool refreshSensorList) try { string fullJson = _httpClient.GetStringAsync(_uri + "api/rootnode").Result; + fullJson = fullJson.Replace("\"Value\": NaN", "\"Value\": 0"); // this fixes an error I encounter where a sensors value is NaN causing the entire thing to crash. lock (_lock) { ComputerJson? rootNode = JsonSerializer.Deserialize(fullJson);