mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00: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:
parent
044f181950
commit
1a162375f9
3 changed files with 3 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue