[W32TIME] Change clock update interval to 4 hours (#5940)

* Create W32TIME_POLL_INTERVAL. Set it to 4 hours and use it to set SpecialPollInterval.
This commit is contained in:
Doug Lyons 2024-05-13 15:01:25 -05:00 committed by GitHub
parent 044f181950
commit 1a162375f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View file

@ -236,7 +236,7 @@ SetNtpClientValues(VOID)
goto done;
}
dwValue = 0x00093a80;
dwValue = W32TIME_POLL_INTERVAL;
dwError = RegSetValueExW(hKey,
L"SpecialPollInterval",
0,

View file

@ -153,7 +153,7 @@ GetIntervalSetting(VOID)
}
if (lRet != ERROR_SUCCESS || dwData < 120)
return 9 * 60 * 60; // 9 hours, because Windows uses 9 hrs, 6 mins and 8 seconds by default.
return W32TIME_POLL_INTERVAL;
else
return dwData;
}

View file

@ -16,6 +16,7 @@
#define MAX_VALUE_NAME 16383
#define NTPPORT 123
#define W32TIME_POLL_INTERVAL (4 * 60 * 60) // 4 hours.
/* ntpclient.c */