Browse Source

use correct multiplier for us -> s conversion

OPENBSD_3_6
otto 20 years ago
parent
commit
74f0809de0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/util.c

+ 2
- 2
src/usr.sbin/ntpd/util.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: util.c,v 1.3 2004/07/05 07:46:16 henning Exp $ */
/* $OpenBSD: util.c,v 1.4 2004/07/05 19:53:21 otto Exp $ */
/* /*
* Copyright (c) 2004 Alexander Guy <alexander.guy@andern.org> * Copyright (c) 2004 Alexander Guy <alexander.guy@andern.org>
@ -36,7 +36,7 @@ void
d_to_tv(double d, struct timeval *tv) d_to_tv(double d, struct timeval *tv)
{ {
tv->tv_sec = (long)d; tv->tv_sec = (long)d;
tv->tv_usec = (d - tv->tv_sec) * 1000;
tv->tv_usec = (d - tv->tv_sec) * 1000000;
} }
double double


Loading…
Cancel
Save