make waiting a little more aggressive

This commit is contained in:
Nils Kneuper 2009-02-22 22:56:53 +00:00
parent 0a577fc163
commit c3f66eb5a1

View file

@ -193,8 +193,8 @@ for f in $filelist
do
while [ $(jobs -p | wc -l) -ge $max_number_threads ]
do
# max number of threads reached, wait for half a second...
sleep 0.5
# max number of threads reached, wait for a quarter second...
sleep 0.25
done
#when here, we can do our normal optimization run
optimize_imgfile $f $opti_nice &