fix: Make defaults more optimal
This commit is contained in:
parent
b1fe5f6698
commit
2ff422aaef
1 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
IFS="
|
||||
"
|
||||
#Set your parameters here
|
||||
url=hub.example.net
|
||||
url=friendica.example.net
|
||||
db=friendica
|
||||
folder=/var/www/friendica
|
||||
folderavatar=/var/www/friendica/avatar
|
||||
|
@ -44,11 +44,12 @@ do
|
|||
do
|
||||
m=$(( m + 1 ))
|
||||
loop "${x}" "${m}" "${n}" "${d}" &
|
||||
if [[ $(jobs -r -p | wc -l) -ge $(( $(getconf _NPROCESSORS_ONLN) / 1 )) ]]
|
||||
if [[ $(jobs -r -p | wc -l) -ge $(( $(getconf _NPROCESSORS_ONLN) * 2 )) ]]
|
||||
then
|
||||
wait -n
|
||||
fi
|
||||
done < <(sudo find "${x}" -type f -mtime -8)
|
||||
#done < <(sudo find "${x}" -type f -mtime -8)
|
||||
done < <(sudo find "${x}" -type f)
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue