Browse Source

elegant num_cores

Derp-derpity derp derp derp
master
Caffarius 11 months ago
parent
commit
75dc279f43
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      smt.sh

+ 1
- 1
smt.sh View File

@@ -12,7 +12,7 @@
# Try your best to control SMT on Ryzen CPUs (and maybe others?)
# Usage: ./smt.sh (enable|disable|status)

num_cores=`lscpu | grep "CPU(s):" | grep -v "," | grep -v "-" | cut -d: -f2 | awk '{print $1}'`
num_cores=`nproc --all`
num_procs=`nproc`

coreLoop() {


Loading…
Cancel
Save