From 75dc279f43ffac83c973d006dce290ce05371e99 Mon Sep 17 00:00:00 2001 From: Caffarius Date: Sat, 3 Aug 2019 18:15:24 -0400 Subject: [PATCH] elegant num_cores Derp-derpity derp derp derp --- smt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smt.sh b/smt.sh index 18981e6..9c69fa9 100644 --- a/smt.sh +++ b/smt.sh @@ -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() {