Skip to content

Commit

Permalink
nproc --all reports more CPUs than is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbakken committed Jun 10, 2024
1 parent ab4986b commit 7cfe896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ barebone | mainsail | fluidd | octoprint)
esac

# Cores
reported_cores=$(nproc --all)
reported_cores=$(nproc)
if [ ! -z $cores ] && [ $cores -gt $reported_cores ]; then
echo "😿 Desired core count greater than reported available cores."
elif [ ! -z $cores ] && [ $cores -lt 1 ]; then
Expand Down

0 comments on commit 7cfe896

Please sign in to comment.