From 6de5f4674f8fa617d05b38be21b2915bde1612f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Sol=C3=ADs?= Date: Mon, 10 Feb 2025 20:47:37 +0000 Subject: [PATCH] feat: Speed things up a bit --- friendica-remove-invalid-photos.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/friendica-remove-invalid-photos.sh b/friendica-remove-invalid-photos.sh index 79d1b05..651a5f1 100755 --- a/friendica-remove-invalid-photos.sh +++ b/friendica-remove-invalid-photos.sh @@ -8,7 +8,7 @@ dbengine=mariadb db=friendica folder=/var/www/friendica intense_optimizations=${1:-"0"} -thread_multiplier=1 +thread_multiplier=2 nfolder="/tmp/friendica-remove-invalid-photos" nfile="${nfolder}/n$(date +%s).csv" nlock="${nfolder}/n$(date +%s).lock" @@ -266,14 +266,8 @@ until [[ $((nt + limit)) -ge "${dbcount}" || "${lastid}" -ge "${maxid}" ]]; do echo "" >"${nlock}" fi rl=1 - else - sleep 1s fi - else - sleep 1s fi - else - sleep 1s fi done done