summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r--usr.sbin/ntpd/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/util.c b/usr.sbin/ntpd/util.c
index 3c618c4c40e..ba44545aae8 100644
--- a/usr.sbin/ntpd/util.c
+++ b/usr.sbin/ntpd/util.c
@@ -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>
@@ -36,7 +36,7 @@ void
d_to_tv(double d, struct timeval *tv)
{
tv->tv_sec = (long)d;
- tv->tv_usec = (d - tv->tv_sec) * 1000;
+ tv->tv_usec = (d - tv->tv_sec) * 1000000;
}
double