Correct autolast in the future

Fixing issue in <https://hummy.tv/forum/threads/recursive-auto-shrink-auto-decrypt-no-longer-working.9399/post-134718>.
This commit is contained in:
df 2020-07-14 10:12:57 +00:00 committed by HummyPkg
parent c428a367a1
commit 3623a26a08

View File

@ -73,7 +73,10 @@ if {!$::auto::force} {
set timesincelast $(([clock seconds] - [$::auto::settings autolast]) \ set timesincelast $(([clock seconds] - [$::auto::settings autolast]) \
/ 60) / 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 "Aborting, not yet time to run." 2
::auto::log " elapsed (minutes): $timesincelast (<$autofreq)" 2 ::auto::log " elapsed (minutes): $timesincelast (<$autofreq)" 2
exit exit