Omit the --all flag from calling nproc to get actual number of cores instead of threads. (#423)

This commit is contained in:
Martin Andersson 2022-08-22 16:42:09 +02:00 committed by GitHub
parent 8fbb5ea624
commit 7573df7bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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