From 7573df7bb23bc0fba999cca933e1c2bd2269a1cf Mon Sep 17 00:00:00 2001 From: Martin Andersson Date: Mon, 22 Aug 2022 16:42:09 +0200 Subject: [PATCH] Omit the --all flag from calling nproc to get actual number of cores instead of threads. (#423) --- 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