MAX_REPORT is in day, must be converted to seconds

master
Daniel Berteaud 9 years ago
parent 378a70877a
commit 7f1204a6d0
  1. 2
      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%

Loading…
Cancel
Save