From b92b72236f074cf3bebbc57dd62bd47ce1c72022 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 27 Aug 2021 11:33:05 +0100 Subject: Add missing CORES variable --- bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/bashrc b/bashrc index 58309fa..0dac387 100644 --- a/bashrc +++ b/bashrc @@ -90,6 +90,7 @@ bloatysizes() { bloaty -s vm --domain=vm -d symbols -C full -n 0 $TARGET | tee /var/tmp/bloaty } +CORES=$(grep core\ id /proc/cpuinfo | wc -l) CPUS=$(grep core\ id /proc/cpuinfo -c) if [ -n "$DISTCC_HOSTS" ] ; then TASKS=$(echo $DISTCC_HOSTS | tr ' ' '\n' | cut -d / -f2 | paste -s -d+ | bc) -- cgit v1.2.3