if [[ -e $f ]]; then
now=$EPOCHSECONDS
fsec=$(stat -c%Y $f)
- # the / 60 makes it 0-59 seconds less strict, +2 to help make sure we
+ # the / 60 makes it 0-59 seconds less strict, +1 to help make sure we
# dont have any false positives.
- fmin=$(( (fsec - now + 2 ) / 60 ))
+ fmin=$(( (fsec - now + 1 ) / 60 ))
fminplus=$(( fmin + 60*24 ))
# Filesystem files get copied, so find any newer than the last run.
# The rest are hueristics: