mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 08:52:59 +08:00
[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:
@@ -236,7 +236,7 @@ SetNtpClientValues(VOID)
|
||||
goto done;
|
||||
}
|
||||
|
||||
dwValue = 0x00093a80;
|
||||
dwValue = W32TIME_POLL_INTERVAL;
|
||||
dwError = RegSetValueExW(hKey,
|
||||
L"SpecialPollInterval",
|
||||
0,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#define MAX_VALUE_NAME 16383
|
||||
#define NTPPORT 123
|
||||
#define W32TIME_POLL_INTERVAL (4 * 60 * 60) // 4 hours.
|
||||
|
||||
|
||||
/* ntpclient.c */
|
||||
|
||||
Reference in New Issue
Block a user