diff options
author | Kay Sievers <kay@vrfy.org> | 2014-04-29 08:57:51 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-04-29 09:51:53 +0200 |
commit | a91df40e69fec72cc98c9829721fa5153da28bc2 (patch) | |
tree | 7d1da98b41e9860df7b3d2d704ecb54618fe14aa /src | |
parent | 0b36bbc42d3a408531517a02acaf56105b863d55 (diff) |
timesyncd: add unit and man page
Diffstat (limited to 'src')
-rw-r--r-- | src/timesync/timesyncd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c index 5bd61dd07c..6ec8139942 100644 --- a/src/timesync/timesyncd.c +++ b/src/timesync/timesyncd.c @@ -627,8 +627,8 @@ static int sntp_receive_response(sd_event_source *source, int fd, uint32_t reven m->samples_jitter, spike ? " spike" : "", m->poll_interval_usec / USEC_PER_SEC); - log_info("%4llu %+10f %10f %10f%s", - m->poll_interval_usec / USEC_PER_SEC, offset, delay, m->samples_jitter, spike ? " spike" : ""); + log_info("poll=%llu s offset=%+f s roundtrip=%f s", + m->poll_interval_usec / USEC_PER_SEC, offset, delay); if (!spike) { r = sntp_adjust_clock(m, offset, leap_sec); @@ -771,9 +771,7 @@ int main(int argc, char *argv[]) { if (r < 0) goto out; - //server = "216.239.32.15"; /* time1.google.com */ - //server = "192.53.103.108"; /* ntp1.ptb.de */ - server = "27.54.95.11"; /* au.pool.ntp.org */ + server = "216.239.32.15"; /* time1.google.com */ sd_notifyf(false, "READY=1\n" |