diff options
author | dg <dg@FreeBSD.org> | 1994-08-29 17:45:43 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-29 17:45:43 +0000 |
commit | 5bf16575e5e14608bc6c498303b5310b239ede59 (patch) | |
tree | 9f8297fbe46298be5b7959263ad06a69e7b1be29 | |
parent | 1095f127fc1c147ccdc435a3b6e8bb0107d84620 (diff) | |
download | FreeBSD-src-5bf16575e5e14608bc6c498303b5310b239ede59.zip FreeBSD-src-5bf16575e5e14608bc6c498303b5310b239ede59.tar.gz |
Changed output formatting to correctly represent the precision - it's
not cool to truncate trailing zeros..
-rw-r--r-- | usr.sbin/traceroute/traceroute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index 2ae83ba..14849fd 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -507,7 +507,7 @@ main(argc, argv) print(packet, cc, &from); lastaddr = from.sin_addr.s_addr; } - Printf(" %g ms", deltaT(&t1, &t2)); + Printf(" %.3f ms", deltaT(&t1, &t2)); switch(i - 1) { case ICMP_UNREACH_PORT: #ifndef ARCHAIC |