summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README8
-rwxr-xr-xcreate_thumbnails.sh6
2 files changed, 7 insertions, 7 deletions
diff --git a/README b/README
index d2fbb81..cfbf541 100644
--- a/README
+++ b/README
@@ -15,10 +15,10 @@ about pictures with the Public tag. Next run
./create_thumbnails.sh
This script creates thumbnails of all pictures and save them in local
-directories. I will only create 100 pictures though, so you will need
-to run it several times. This is done, so that you can easily run it
-via cron for example every hour on a remote server without creating
-jobs that last forever.
+directories. I will only create 50 pictures at a time though, so you
+will need to run it several times. This is done, so that you limit the
+time this tasks run, so that it doesn't get shut down on for example
+rented web-space where execcive CPU uses is an issue.
Ones this is done you can visit index.php and everything should be working.
diff --git a/create_thumbnails.sh b/create_thumbnails.sh
index 6174538..6bae6bb 100755
--- a/create_thumbnails.sh
+++ b/create_thumbnails.sh
@@ -54,8 +54,8 @@ done=0
offset=0
FILES=""
-while [ $done -lt 200 ] ; do
- echo "skipping $offset pics, getting 100 new pics to work on..."
+while [ $done -lt 100 ] ; do
+ echo "skipping $offset pics, getting 50 new pics to work on..."
# handle white space in filename correctly
FILES=`sqlite3 $LOCALDB "select replace(base_uri||'/'||filename,' ','%20') from photos limit $offset,100"`
@@ -98,5 +98,5 @@ while [ $done -lt 200 ] ; do
fi
#get ready to get the next 100
- offset=$((offset+100))
+ offset=$((offset+50))
done