Omit the --all flag from calling nproc to get actual number of cores instead of threads. (#423)
This commit is contained in:
parent
8fbb5ea624
commit
7573df7bb2
|
@ -1072,7 +1072,7 @@ def sysinfo():
|
||||||
print(f"Processor:{model_name}")
|
print(f"Processor:{model_name}")
|
||||||
|
|
||||||
# get core count
|
# get core count
|
||||||
total_cpu_count = int(getoutput("nproc --all"))
|
total_cpu_count = int(getoutput("nproc"))
|
||||||
print("Cores:", total_cpu_count)
|
print("Cores:", total_cpu_count)
|
||||||
|
|
||||||
# get architecture
|
# get architecture
|
||||||
|
|
Loading…
Reference in New Issue