diff options
author | Arun Persaud <arun@nubati.net> | 2011-11-24 09:55:21 -0800 |
---|---|---|
committer | Arun Persaud <apersaud@lbl.gov> | 2011-11-24 09:55:21 -0800 |
commit | 8c294704502f0abfb554baec7d372a9bf6a0f6c6 (patch) | |
tree | fbcc3c444751d38da4e98ae87cd798da5863117c /create_thumbnails.sh | |
parent | 36bcd32844666ba84b2947387ce195c25d87fadd (diff) | |
download | photo-tags-8c294704502f0abfb554baec7d372a9bf6a0f6c6.tar.gz photo-tags-8c294704502f0abfb554baec7d372a9bf6a0f6c6.tar.bz2 photo-tags-8c294704502f0abfb554baec7d372a9bf6a0f6c6.zip |
limit number of created thumbnails per batch to 50
larger numbers caused the program to be killed automatically on dreamhost (where I host my web pages).
Diffstat (limited to 'create_thumbnails.sh')
-rwxr-xr-x | create_thumbnails.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |