Browse Source

Don't show the subseconds when displaying the constraint offset.

OK henning@ deraadt@
OPENBSD_5_7
reyk 9 years ago
parent
commit
65816fa1ac
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/usr.sbin/ntpd/ntpd.c

+ 3
- 3
src/usr.sbin/ntpd/ntpd.c View File

@ -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> * 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 + tv.tv_sec = cstatus->constraint_median +
(getmonotime() - cstatus->constraint_last); (getmonotime() - cstatus->constraint_last);
tv.tv_usec = 0; 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) if (cstatus->constraint_errors)
printf(" (%d errors)", printf(" (%d errors)",
cstatus->constraint_errors); cstatus->constraint_errors);


Loading…
Cancel
Save