Node_Exporter/vendor/github.com/beevik/ntp
Chris Batey 387c64424b Use the offset calculation that includes round trip time in the ntp collector
Previously the raw time difference was used which includes the network trip time
between the node and the ntp server. This makes setting alerts off the value
troublesome as it depends on the latency as well as the clock offset.
2016-06-01 08:56:20 +01:00
..
CONTRIBUTORS Use the offset calculation that includes round trip time in the ntp collector 2016-06-01 08:56:20 +01:00
LICENSE Vendor all dependencies 2016-01-21 16:41:53 -05:00
ntp.go Use the offset calculation that includes round trip time in the ntp collector 2016-06-01 08:56:20 +01:00
README.md Use the offset calculation that includes round trip time in the ntp collector 2016-06-01 08:56:20 +01:00

Build Status GoDoc

ntp

The ntp package is a small implementation of a limited NTP client. It requests the current time from a remote NTP server according to selected version of the NTP protocol. Client uses version 4 of the NTP protocol RFC5905 by default.

The approach was inspired by a post to the go-nuts mailing list by Michael Hofmann:

https://groups.google.com/forum/?fromgroups#!topic/golang-nuts/FlcdMU5fkLQ