diff --git a/softwares/FWSUpdates/bin/sync.bat b/softwares/FWSUpdates/bin/sync.bat index 5633555..bcd1284 100644 --- a/softwares/FWSUpdates/bin/sync.bat +++ b/softwares/FWSUpdates/bin/sync.bat @@ -164,7 +164,7 @@ IF %CHANGES% GTR 0 ( SET /A MAX=%SINCE%+%MAX_REPORT%*86400 ) ELSE ( FOR /F %%A IN ('reg query "HKLM\Software\FWS\Updates" /v ChangesAvailableSince') DO SET /A SINCE=%%A - SET /A MAX=%SINCE%+%MAX_REPORT% + SET /A MAX=%SINCE%+%MAX_REPORT%*86400 IF %NOW% GTR %MAX% add "HKLM\Software\FWS\Updates" /v RunOnShutdown /t REG_DWORD /d 1 /f ) SET /A DELTA=%NOW%-%SINCE%