diff options
author | 2015-02-10 11:16:47 +0000 | |
---|---|---|
committer | 2015-02-10 11:16:47 +0000 | |
commit | a5f7863a0c0775dd9ab944c00edfb849992087de (patch) | |
tree | c28aed3fe9ee9004e1efef1c86a2b18820ea549f | |
parent | Remove crypto/store - part of which is "currently highly experimental". (diff) | |
download | wireguard-openbsd-a5f7863a0c0775dd9ab944c00edfb849992087de.tar.xz wireguard-openbsd-a5f7863a0c0775dd9ab944c00edfb849992087de.zip |
Don't show the subseconds when displaying the constraint offset.
OK henning@ deraadt@
-rw-r--r-- | usr.sbin/ntpd/ntpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c index 622fd223dbc..ef35b71936b 100644 --- a/usr.sbin/ntpd/ntpd.c +++ b/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.89 2015/02/10 06:40:08 reyk Exp $ */ +/* $OpenBSD: ntpd.c,v 1.90 2015/02/10 11:16:47 reyk Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -728,8 +728,8 @@ show_status_msg(struct imsg *imsg) tv.tv_sec = cstatus->constraint_median + (getmonotime() - cstatus->constraint_last); tv.tv_usec = 0; - printf("constraint offset %f", - gettime_from_timeval(&tv) - gettime()); + d_to_tv(gettime_from_timeval(&tv) - gettime(), &tv); + printf("constraint offset %llds", (long long)tv.tv_sec); if (cstatus->constraint_errors) printf(" (%d errors)", cstatus->constraint_errors); |