Skip to content

Commit

Permalink
Only count the "processor" at the start of the line
Browse files Browse the repository at this point in the history
  • Loading branch information
dkulp committed Dec 10, 2019
1 parent 091220b commit 95c29f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/functions
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ compileBinaries() {
# export CCACHE_LOGFILE=/tmp/cache.debug
export LANG=en_US.UTF-8
export TERM=linux
CPUS=$(grep processor /proc/cpuinfo | wc -l)
CPUS=$(grep "^processor" /proc/cpuinfo | wc -l)
if [ "x${FPPDIR}" = "x/opt/fpp" ]
then
cd ${FPPDIR}/src && ${SUDO} make clean && ${SUDO} -E make -j ${CPUS} optimized
Expand Down

0 comments on commit 95c29f1

Please sign in to comment.