Skip to content

Commit 3381062

Browse files
committed
CPU (FreeBSD): fix cpu temperature detection
1 parent 553b0fe commit 3381062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/cpu/cpu_bsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu)
4646

4747
if (options->temp)
4848
{
49-
if (!ffDetectCpuTemp(&cpu->temperature))
49+
if (ffDetectCpuTemp(&cpu->temperature) != NULL)
5050
ffDetectThermalTemp(&cpu->temperature);
5151
}
5252

0 commit comments

Comments
 (0)