fix: Increase threshold for file size
This commit is contained in:
parent
293b11dad8
commit
ec467c3bc2
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ loop_1() {
|
||||||
echo "Generating photo index..." #&> /dev/null
|
echo "Generating photo index..." #&> /dev/null
|
||||||
sudo mariadb "${db}" -e "alter table photo add index if not exists backend_index (\`backend-ref\`)" #&> /dev/null
|
sudo mariadb "${db}" -e "alter table photo add index if not exists backend_index (\`backend-ref\`)" #&> /dev/null
|
||||||
echo "Generating list of files..." #&> /dev/null
|
echo "Generating list of files..." #&> /dev/null
|
||||||
find "${storagefolder}" -depth -mindepth 2 -type f -size +50k -mtime -8 -not -iname "index.html" | (
|
find "${storagefolder}" -depth -mindepth 2 -type f -size +100k -mtime -8 -not -iname "index.html" | (
|
||||||
while read -r p; do
|
while read -r p; do
|
||||||
loop_1 "${p}" &
|
loop_1 "${p}" &
|
||||||
until [[ $(jobs -r -p | wc -l) -lt $(($(getconf _NPROCESSORS_ONLN) / 2)) ]]; do
|
until [[ $(jobs -r -p | wc -l) -lt $(($(getconf _NPROCESSORS_ONLN) / 2)) ]]; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue