Commit 80883c03 authored by Kevin Bracey's avatar Kevin Bracey
Browse files

Now reports round trip times with microsecond accuracy.

parent a10e99af
...@@ -618,11 +618,7 @@ pr_pack(buf, cc, from) ...@@ -618,11 +618,7 @@ pr_pack(buf, cc, from)
icp->icmp_seq); icp->icmp_seq);
(void)printf(" ttl=%d", ip->ip_ttl); (void)printf(" ttl=%d", ip->ip_ttl);
if (timing) if (timing)
#ifdef __riscos
(void)printf(" time=%.0f ms", triptime);
#else
(void)printf(" time=%.3f ms", triptime); (void)printf(" time=%.3f ms", triptime);
#endif
if (dupflag) if (dupflag)
(void)printf(" (DUP!)"); (void)printf(" (DUP!)");
/* check the data */ /* check the data */
......
...@@ -535,11 +535,7 @@ main(argc, argv) ...@@ -535,11 +535,7 @@ main(argc, argv)
print(packet, cc, &from); print(packet, cc, &from);
lastaddr = from.sin_addr.s_addr; lastaddr = from.sin_addr.s_addr;
} }
#ifdef __riscos
Printf(" %.0f ms", deltaT(&t1, &t2));
#else
Printf(" %.3f ms", deltaT(&t1, &t2)); Printf(" %.3f ms", deltaT(&t1, &t2));
#endif
switch(i - 1) { switch(i - 1) {
case ICMP_UNREACH_PORT: case ICMP_UNREACH_PORT:
#ifndef ARCHAIC #ifndef ARCHAIC
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment