From 0d7ac95e9100e208556a8f9694255ea52d8d5c90 Mon Sep 17 00:00:00 2001 From: Martin Andersson Date: Mon, 22 Aug 2022 09:56:18 +0200 Subject: [PATCH] Omit the --all flag from calling nproc to get actual number of cores instead of threads. --- auto_cpufreq/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index 9fab1c01..1ee9a179 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -1072,7 +1072,7 @@ def sysinfo(): print(f"Processor:{model_name}") # get core count - total_cpu_count = int(getoutput("nproc --all")) + total_cpu_count = int(getoutput("nproc")) print("Cores:", total_cpu_count) # get architecture