summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2004-07-05 19:53:21 +0000
committerotto <otto@openbsd.org>2004-07-05 19:53:21 +0000
commit58ae80970e74b3d45f6bc531954b2306da7b02fd (patch)
tree1d0693189407cab021f92a8b7e63daa51c264aac
parenttoo clever, perl regexps are greedy, ensure we get the correct name. (diff)
downloadwireguard-openbsd-58ae80970e74b3d45f6bc531954b2306da7b02fd.tar.xz
wireguard-openbsd-58ae80970e74b3d45f6bc531954b2306da7b02fd.zip
use correct multiplier for us -> s conversion
-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