From owner-freebsd-current Mon Jul 3 19:22:48 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA04617 for current-outgoing; Mon, 3 Jul 1995 19:22:48 -0700 Received: from haywire.DIALix.COM (peter@haywire.DIALix.COM [192.203.228.65]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id TAA04608 for ; Mon, 3 Jul 1995 19:22:40 -0700 Received: (from peter@localhost) by haywire.DIALix.COM (8.6.12/8.6.12/DIALix) id KAA17484; Tue, 4 Jul 1995 10:22:05 +0800 Date: Tue, 4 Jul 1995 10:22:04 +0800 (WST) From: Peter Wemm To: David Greenman cc: current@freebsd.org Subject: Re: comments on my favourite hack to traceroute? In-Reply-To: <199507040206.TAA05964@corbin.Root.COM> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: current-owner@freebsd.org Precedence: bulk On Mon, 3 Jul 1995, David Greenman wrote: > > >This is my favourite hack to traceroute to rationalize the number of > >digits printed in the rtt stats.. > >The standard one prints three numbers after the decimal point, and when > >you're up in the thousands of milliseconds (try going from australia to > >the depths of europe some time.. :-), then the numbers are a bit of > >overkill. It makes the display look very messy. > > > >I made a change to cause traceroute to only show a limited number of > >significant digits.. > > That's similar to what the code did originally. I changed it because it > incorrectly represents the precision and I find it a lot more difficult to > read with varying numbers of decimal digits. I'm personally more interested > in accuracy than I am in formatting. Besides, IMO, the solution to lines being > too long has always been to use a larger window. :-) Yes, you're right.. The original code was broken - it would trim off trailing zeros, even if they were significant. The code I suggested would still print "1.000 ms", so it'd be easy to read while testing RTT's on ethernets and local-ish links. But "3000.001 ms" is ridiculous... When you're doing a traceroute over a links like that, you're hardly worried about +/- 100 ms.. I still think my way is better.. (of course.. :-) Also, bear in mind that it isn't always practical to resize the window on a physical terminal... > -DG > Cheers, -Peter