From 3623a26a080f635269ea64538ddc136316249814 Mon Sep 17 00:00:00 2001 From: df Date: Tue, 14 Jul 2020 10:12:57 +0000 Subject: [PATCH] Correct autolast in the future Fixing issue in . --- webif/lib/auto/scan | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webif/lib/auto/scan b/webif/lib/auto/scan index 05fea36..3926ad6 100755 --- a/webif/lib/auto/scan +++ b/webif/lib/auto/scan @@ -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