mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-09-23 09:48:20 +02:00
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…
x
Reference in New Issue
Block a user