Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
does anybody know why ping sometimes displays two decimal places for xx.10 only, sometimes - it does xx.1 ?
I cant see any logic here - it does that for .10 only.. no other hundredths of a ms...
If I understand the question, of the different versions I have tested only 3 significant digits are displayed but never xx.10.
Code:
pinging localhost
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.057 ms
Pinging a wifi device on my network
64 bytes from sprinkler.localnet (192.168.0.212): icmp_seq=1 ttl=100 time=4.94 ms
Pinging google.com
64 bytes from atl14s08-in-f142.1e100.net (216.58.193.142): icmp_seq=1 ttl=119 time=31.6 ms
I watched the rrt for a few minutes, then re-tried and it did come back with just 1 decimal for all ms - the only exception was the .10 - so no difference between now and the original post
I had not seen your attachment, sorry. Well your ping is six years younger than mine; perhaps they gradually develop the capability of displaying decimal digits.
Seriously, I tend to consider this a (very) minor bug. I may have a Debian 10 VM lying around to check this.
well, what's minor and not depends where and how the results are being used. If rounding up the values is not doing what it what was planned, than the results are wrong.
for you or me, this is a 'minor' one but i guess when you try to eg. sort the results it might give you a misleading outcome. Not even looking at the byte count... I guess things are either right, or wrong.
I finally saw the same thing as in your attachment. I assume it is due to some rounding error in the calculation on how the utility creates the output that produces the "anomaly". It would take a bit to examine the source code but since it is a minor bug not worth the effort.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.