From 74f0809de0cdd93ea9074cc8a832b2cc0014dccb Mon Sep 17 00:00:00 2001 From: otto <> Date: Mon, 5 Jul 2004 19:53:21 +0000 Subject: [PATCH] use correct multiplier for us -> s conversion --- src/usr.sbin/ntpd/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/util.c b/src/usr.sbin/ntpd/util.c index 3c618c4c..ba44545a 100644 --- a/src/usr.sbin/ntpd/util.c +++ b/src/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 @@ -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