Skip to content

Commit 7573df7

Browse files
authored
Omit the --all flag from calling nproc to get actual number of cores instead of threads. (#423)
1 parent 8fbb5ea commit 7573df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_cpufreq/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ def sysinfo():
10721072
print(f"Processor:{model_name}")
10731073

10741074
# get core count
1075-
total_cpu_count = int(getoutput("nproc --all"))
1075+
total_cpu_count = int(getoutput("nproc"))
10761076
print("Cores:", total_cpu_count)
10771077

10781078
# get architecture

0 commit comments

Comments
 (0)