Fix process counting...
This commit is contained in:
parent
ec32f72617
commit
63b841a385
@ -85,8 +85,8 @@ get_width_by_height() {
|
|||||||
}
|
}
|
||||||
# TOO MANY CONVERT PROCSSES => WAIT
|
# TOO MANY CONVERT PROCSSES => WAIT
|
||||||
thread_check() {
|
thread_check() {
|
||||||
while [ $(pgrep convert | wc -l | awk '{ print $1 }') -gt $THREADS ];
|
while [ $(pgrep convert | wc -l | awk '{ print $1 }') -gt $(($THREADS-1)) ];
|
||||||
do console "More than $THREADS convert threads. Waiting..."; sleep 2; done
|
do console "Process Limit ($THREADS) reached. Waiting..."; sleep 2; done
|
||||||
}
|
}
|
||||||
|
|
||||||
# CREATE THUMBNAIL
|
# CREATE THUMBNAIL
|
||||||
|
Loading…
Reference in New Issue
Block a user