use actual cpu count
This commit is contained in:
parent
facb11a58f
commit
d52a5075a8
@ -4,6 +4,7 @@
|
||||
|
||||
DIR="$(basename "$PWD")"
|
||||
TITLE="$(basename "$PWD" |sed 's/unlisted-//g' | cut -d"_" -f2- | tr '-' ' ')"
|
||||
PROCS="$(sysctl -n hw.ncpuonline)"
|
||||
|
||||
mkdir -p thm mid
|
||||
|
||||
@ -70,7 +71,7 @@ do
|
||||
echo "</tr><tr>"
|
||||
fi
|
||||
|
||||
while [ $(pgrep convert | wc -l) -ge 15 ]
|
||||
while [ $(pgrep convert | wc -l) -gt $PROCS ]
|
||||
do sleep 0.3; done
|
||||
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user