You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2019. It is now read-only.
* WIP
* Added check for time out of sync
* merged upstream/master
* added tests
* Increased configuration options for NTPclient and test coverage
* removed unneeded config save at end of ntp update
* Added test for empty response to confirm it will loop
* formatting correction
* converted to pointer to allow for default allowance settings to be checked
* added readme for NTP server
* corrected some formatting
* updated configtest negativedifference value
* gofmt config_test.go for correct import order
* corrected typo value in test
* bugfix for windows newline and changes based on PR feedback
* added minus sign to output
* fixed negative number input
* Fixed spelling mistakes and removed redundant test
* reverted back to a positive number in the config instead of negative for allowednegativedifference
* restructured code for cleaner output
Copy file name to clipboardexpand all lines: config/README.md
+17
Original file line number
Diff line number
Diff line change
@@ -211,6 +211,23 @@ comm method and add in your contact list if available.
211
211
},
212
212
```
213
213
214
+
215
+
## Configure Network Time Server
216
+
217
+
+ To configure and enable a NTP server you need to set the "enabled" field to one of 3 values -1 is disabled 0 is enabled and alert at start up 1 is enabled and warn at start up
218
+
servers are configured by the pool array and attempted first to last allowedDifference and allowedNegativeDifference are how far ahead and behind is acceptable for the time to be out in nanoseconds
219
+
220
+
```js
221
+
"ntpclient": {
222
+
"enabled":0,
223
+
"pool": [
224
+
"pool.ntp.org:123"
225
+
],
226
+
"allowedDifference":0,
227
+
"allowedNegativeDifference":0
228
+
},
229
+
```
230
+
214
231
### Please click GoDocs chevron above to view current GoDoc information for this package
0 commit comments