From b79c47cac96de20799ae8b0e526f91d49d9c61b6 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 18 May 2024 01:50:21 +0800 Subject: [PATCH] CPU (BSD): fix max freq detection --- src/detection/cpu/cpu_bsd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detection/cpu/cpu_bsd.c b/src/detection/cpu/cpu_bsd.c index 47a94ac28..6ada85657 100644 --- a/src/detection/cpu/cpu_bsd.c +++ b/src/detection/cpu/cpu_bsd.c @@ -66,6 +66,8 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu) } ffStrbufClear(&buffer); } + cpu->frequencyMin /= 1000; + cpu->frequencyMax /= 1000; int clockRate = ffSysctlGetInt("hw.clockrate", 0); cpu->frequencyBase = clockRate <= 0 ? 0.0/0.0 : clockRate / 1000.0;