Temps: add options to enable detection ( disabled by default )

This commit is contained in:
李通洲
2022-09-26 11:06:21 +08:00
parent 5fdb0719f2
commit 100e59fd49
9 changed files with 34 additions and 5 deletions
+4 -1
View File
@@ -84,7 +84,10 @@ const char* ffDetectGPUImpl(FFlist* gpus, const FFinstance* instance)
if(ffCfDictGetInt(properties, CFSTR("gpu-core-count"), &gpu->coreCount))
gpu->coreCount = FF_GPU_CORE_COUNT_UNSET;
gpu->temperature = detectGpuTemp(&gpu->name);
if(instance->config.gpuTemp)
gpu->temperature = detectGpuTemp(&gpu->name);
else
gpu->temperature = FF_GPU_TEMP_UNSET;
CFRelease(properties);
IOObjectRelease(registryEntry);