Skip to content

Commit

Permalink
Omit the --all flag from calling nproc to get actual number of cores …
Browse files Browse the repository at this point in the history
…instead of threads. (#423)
  • Loading branch information
zoitrok committed Aug 22, 2022
1 parent 8fbb5ea commit 7573df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_cpufreq/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7573df7

Please sign in to comment.