CPU (FreeBSD): fix cpu temperature detection

This commit is contained in:
Carter Li
2024-09-14 21:53:43 +08:00
parent 553b0fe8cc
commit 3381062ab9
+1 -1
View File
@@ -46,7 +46,7 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu)
if (options->temp)
{
if (!ffDetectCpuTemp(&cpu->temperature))
if (ffDetectCpuTemp(&cpu->temperature) != NULL)
ffDetectThermalTemp(&cpu->temperature);
}