Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uk0/go-ntpdate-server
simple ntpdate server
https://github.com/uk0/go-ntpdate-server
Last synced: about 12 hours ago
JSON representation
simple ntpdate server
- Host: GitHub
- URL: https://github.com/uk0/go-ntpdate-server
- Owner: uk0
- License: apache-2.0
- Created: 2023-07-18T03:01:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-18T04:05:34.000Z (over 1 year ago)
- Last Synced: 2024-06-21T17:06:17.017Z (5 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ntpdate-server
simple ntpdate server## quick start
* `ntpdate -d -u 127.0.0.1`
```bash
root@ubuntu-test-58:~# ntpdate -d -u 127.0.0.1
18 Jul 04:02:51 ntpdate[1682912]: ntpdate [email protected] Wed Feb 16 17:13:02 UTC 2022 (1)
Looking for host 127.0.0.1 and service ntp
127.0.0.1 reversed to localhost
host found : localhost
transmit(127.0.0.1)
receive(127.0.0.1)
transmit(127.0.0.1)
receive(127.0.0.1)
transmit(127.0.0.1)
receive(127.0.0.1)
transmit(127.0.0.1)
receive(127.0.0.1)server 127.0.0.1, port 123
stratum 1, precision -6, leap 00, trust 000
refid [], root delay 0.000000, root dispersion 0.000000
reference time: e8608d71.8cac5b44 Tue, Jul 18 2023 4:02:57.549
originate timestamp: e8608d71.8cac6964 Tue, Jul 18 2023 4:02:57.549
transmit timestamp: e8608d71.9702e3d3 Tue, Jul 18 2023 4:02:57.589
filter delay: 0.04166 0.04149 0.04150 0.04149
---- ---- ---- ----
filter offset: -0.040514 -0.040481 -0.040477 -0.040505
---- ---- ---- ----
delay 0.04149, dispersion 0.00002, offset -0.04048118 Jul 04:02:57 ntpdate[1682912]: adjust time server 127.0.0.1 offset -0.040481 sec
```