diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2013-05-31 19:46:58 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2013-05-31 19:46:58 +0000 |
commit | a274aa70e92c6fb756e19f5aa421fd27ea342702 (patch) | |
tree | 07f8b8e809584957bef99c81d991099f6c45e3be /sbin/ping6 | |
parent | 19d7b14e58409cab47706b37687f3d67ad783b7d (diff) |
don't truncate trailing zeros from the round-trip times; ok deraadt@ sthen@
Diffstat (limited to 'sbin/ping6')
-rw-r--r-- | sbin/ping6/ping6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index 4cfb83d9e63..efedb8185a8 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping6.c,v 1.83 2013/04/16 22:10:48 deraadt Exp $ */ +/* $OpenBSD: ping6.c,v 1.84 2013/05/31 19:46:57 naddy Exp $ */ /* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */ /* @@ -1351,7 +1351,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!)"); if (options & F_AUD_RECV) |