PR/30226: Nino Dehne: ping6(8) and ping(8) are inconsistent in the output
of round-trip times. okay rpaulo@
This commit is contained in:
parent
d197e1ae6b
commit
30d1b3f220
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ping6.c,v 1.69 2006/05/18 02:14:22 rpaulo Exp $ */
|
||||
/* $NetBSD: ping6.c,v 1.70 2006/09/23 16:18:04 elad Exp $ */
|
||||
/* $KAME: ping6.c,v 1.164 2002/11/16 14:05:37 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -77,7 +77,7 @@ static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
|
|||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: ping6.c,v 1.69 2006/05/18 02:14:22 rpaulo Exp $");
|
||||
__RCSID("$NetBSD: ping6.c,v 1.70 2006/09/23 16:18:04 elad Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -1489,7 +1489,7 @@ pr_pack(u_char *buf, int cc, struct msghdr *mhdr)
|
|||
sizeof(dstsa)));
|
||||
}
|
||||
if (timing)
|
||||
(void)printf(" time=%g ms", triptime);
|
||||
(void)printf(" time=%.3f ms", triptime);
|
||||
if (dupflag)
|
||||
(void)printf("(DUP!)");
|
||||
/* check the data */
|
||||
|
|
Loading…
Reference in New Issue