GPU: support printing frequency in MHz

This commit is contained in:
李通洲
2024-07-17 14:52:35 +08:00
parent 46abc4f5f7
commit 408a2d731a
8 changed files with 14 additions and 15 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ const char* ffDetectIntelGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverRe
maxValue = props.max;
}
}
*result.frequency = maxValue / 1000;
*result.frequency = (uint32_t) (maxValue + 0.5);
}
}