This has long bugged me and tonight I finally snapped and had to do
something about it.  Example output:

64 bytes from a.b.c.d: icmp_seq=935 ttl=126 time=33.824 ms
64 bytes from a.b.c.d: icmp_seq=936 ttl=126 time=29.138 ms
64 bytes from a.b.c.d: icmp_seq=937 ttl=126 time=28.262 ms
64 bytes from a.b.c.d: icmp_seq=938 ttl=126 time=29.67 ms
64 bytes from a.b.c.d: icmp_seq=939 ttl=126 time=30.963 ms
64 bytes from a.b.c.d: icmp_seq=940 ttl=126 time=30.283 ms
64 bytes from a.b.c.d: icmp_seq=941 ttl=126 time=29.455 ms

The source of irritation being line seq 930. The time should be 29.670
since we are accurately measuring the precision to the thousands place.

I think you mean line seq 938.

Yeah... my eyes are getting blurry... the 8 and 0 look similar at the moment... probably a good sign I should stop and crash for the night.


This seems to be a local bug in printf. The correct format for printing
3 digits after the decimal point (%.3f) is already used, and printf of
29.67 with format %.3f gives 29.67 here.

Inclined to agree with you... while poking at this I started to get desperate and something tickled the back of my mind about needing a trailing '0' to cause it zero pad data to the right. But, looks like this has long since been fixed (accidentally tested in an old 4.x tree). OS-X has the same bug (so I chased to FreeBSD to fix hoping apple picks up the fix), but, looks like 5.3 (maybe 5.2 too) has this fixed. Please disregard. Must remember to test more before posting, esp late at night. *blush* -sc


--
Sean Chittenden

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to