CPU (Linux): fix temperature detection (#1308)

Return proper NaN instead of false -> 0.0 coercion
This commit is contained in:
kralverde
2024-10-01 19:43:58 -04:00
committed by GitHub
parent b49c509a6c
commit 89d3924659
+1 -1
View File
@@ -47,7 +47,7 @@ static double parseHwmonDir(FFstrbuf* dir, FFstrbuf* buffer)
ffStrbufEqualS(buffer, "coretemp") // Intel
) return value / 1000.;
return false;
return 0.0/0.0;
}
static double detectCPUTemp(void)