mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-04-08 17:05:56 +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}")
|
||||
|
||||
# get core count
|
||||
total_cpu_count = int(getoutput("nproc --all"))
|
||||
total_cpu_count = int(getoutput("nproc"))
|
||||
print("Cores:", total_cpu_count)
|
||||
|
||||
# get architecture
|
||||
|
Loading…
x
Reference in New Issue
Block a user