Temp (FreeBSD): improve CPU temp detection

This commit is contained in:
李通洲
2023-10-10 09:28:31 +08:00
parent 42f6d029b0
commit e7df94495c
3 changed files with 16 additions and 1 deletions
+4 -1
View File
@@ -16,7 +16,10 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu)
cpu->temperature = FF_CPU_TEMP_UNSET;
if (options->temp)
ffDetectThermalTemp(&cpu->temperature);
{
if (!ffDetectCpuTemp(&cpu->temperature))
ffDetectThermalTemp(&cpu->temperature);
}
return NULL;
}