summaryrefslogtreecommitdiffstats
path: root/usr.sbin/timed
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-10-27 07:41:12 +0000
committercharnier <charnier@FreeBSD.org>1997-10-27 07:41:12 +0000
commitfb8e8d64e8f4eb5de543a883dd6a73f9cc568692 (patch)
tree9fe00b31545f92a03b4f3006d293c572aaf48b12 /usr.sbin/timed
parent31e25c2156328c1c0747ea60453db46db6476b72 (diff)
downloadFreeBSD-src-fb8e8d64e8f4eb5de543a883dd6a73f9cc568692.zip
FreeBSD-src-fb8e8d64e8f4eb5de543a883dd6a73f9cc568692.tar.gz
ntohl->htonl.
OKed by: Bruce
Diffstat (limited to 'usr.sbin/timed')
-rw-r--r--usr.sbin/timed/timed/measure.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/timed/timed/measure.c b/usr.sbin/timed/timed/measure.c
index 6cdb527..0882d5e 100644
--- a/usr.sbin/timed/timed/measure.c
+++ b/usr.sbin/timed/timed/measure.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)measure.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: measure.c,v 1.4 1997/10/22 06:19:48 charnier Exp $";
#endif /* not lint */
#include "globals.h"
@@ -151,7 +151,7 @@ measure(maxmsec, wmsec, hname, addr, print)
*/
if (trials < TRIALS) {
trials++;
- oicp->icmp_otime = ntohl((tcur.tv_sec % SECDAY) * 1000
+ oicp->icmp_otime = htonl((tcur.tv_sec % SECDAY) * 1000
+ tcur.tv_usec / 1000);
oicp->icmp_cksum = 0;
oicp->icmp_cksum = in_cksum((u_short*)oicp,
OpenPOWER on IntegriCloud