imagery: osstvw_make_diffs only trim files <180KB
authorGrant Slater <git@firefishy.com>
Mon, 30 May 2016 16:40:41 +0000 (17:40 +0100)
committerGrant Slater <git@firefishy.com>
Mon, 30 May 2016 16:40:41 +0000 (17:40 +0100)
cookbooks/imagery/files/default/osstvw_make_diffs

index 5dbfec703903f3351a401109dd320a8aae7f29c8..109545025d359fc0417e757e9bf257ea0f895e16 100644 (file)
@@ -61,7 +61,7 @@ for (( i=0; i<${OSSV_EDITIONS_LENGTH}; i++ )); do
           sleep 1   # this is not optimal, but you can't use wait here
           running=($(jobs -rp))
         done
-      done < <(find "${OSSV_DIFF_NAME}" -maxdepth 1 -name '*.tif' -printf '%f\0')
+      done < <(find "${OSSV_DIFF_NAME}" -maxdepth 1 -name '*.tif' -size -180000 -printf '%f\0')
     fi
   done
 done