Merge pull request 'df-autolast-future-patch' (#13) from df/webif:df-autolast-future-patch into master

Reviewed-on: #13
This commit is contained in:
af123 2020-10-16 13:25:41 +00:00
commit 006a04683a

View File

@ -73,7 +73,10 @@ if {!$::auto::force} {
set timesincelast $(([clock seconds] - [$::auto::settings autolast]) \
/ 60)
if {$timesincelast < $autofreq} {
if {$timesincelast < 0} {
# time machine issue: correct it
$::auto::settings autolast 0
} elseif {$timesincelast < $autofreq} {
::auto::log "Aborting, not yet time to run." 2
::auto::log " elapsed (minutes): $timesincelast (<$autofreq)" 2
exit