Why does ping return .1 and .10?












0















this is not really a problem, but I'd like to know the reason behind this behavior.



When I ping any IP (eg 8.8.8.8) I get:



...
64 bytes from 8.8.8.8: icmp_seq=23283 ttl=120 time=50.4 ms
64 bytes from 8.8.8.8: icmp_seq=23284 ttl=120 time=**43.1 ms**
64 bytes from 8.8.8.8: icmp_seq=23285 ttl=120 time=43.0 ms
64 bytes from 8.8.8.8: icmp_seq=23290 ttl=120 time=**27.10 ms**
64 bytes from 8.8.8.8: icmp_seq=23291 ttl=120 time=28.0 ms
...


As you can see there is an entry with a decimal of .10 and another with .1 (without the trailing 0).
They should be the same, why the difference?



Thanks in advance










share|improve this question























  • What version of ping (or at least, what version of iputils-ping) is this? Looking at the source, the precision should go from 0 to 3 places depending on the size of the time field - but as far as I can tell the breaks should be at multiples of 10 (i.e. < 1ms, < 10ms, < 100ms)

    – steeldriver
    Mar 17 at 16:40











  • inetutils-ping/cosmic 2:1.9.4-3build1 amd64

    – flash.killer
    Mar 17 at 16:59


















0















this is not really a problem, but I'd like to know the reason behind this behavior.



When I ping any IP (eg 8.8.8.8) I get:



...
64 bytes from 8.8.8.8: icmp_seq=23283 ttl=120 time=50.4 ms
64 bytes from 8.8.8.8: icmp_seq=23284 ttl=120 time=**43.1 ms**
64 bytes from 8.8.8.8: icmp_seq=23285 ttl=120 time=43.0 ms
64 bytes from 8.8.8.8: icmp_seq=23290 ttl=120 time=**27.10 ms**
64 bytes from 8.8.8.8: icmp_seq=23291 ttl=120 time=28.0 ms
...


As you can see there is an entry with a decimal of .10 and another with .1 (without the trailing 0).
They should be the same, why the difference?



Thanks in advance










share|improve this question























  • What version of ping (or at least, what version of iputils-ping) is this? Looking at the source, the precision should go from 0 to 3 places depending on the size of the time field - but as far as I can tell the breaks should be at multiples of 10 (i.e. < 1ms, < 10ms, < 100ms)

    – steeldriver
    Mar 17 at 16:40











  • inetutils-ping/cosmic 2:1.9.4-3build1 amd64

    – flash.killer
    Mar 17 at 16:59
















0












0








0








this is not really a problem, but I'd like to know the reason behind this behavior.



When I ping any IP (eg 8.8.8.8) I get:



...
64 bytes from 8.8.8.8: icmp_seq=23283 ttl=120 time=50.4 ms
64 bytes from 8.8.8.8: icmp_seq=23284 ttl=120 time=**43.1 ms**
64 bytes from 8.8.8.8: icmp_seq=23285 ttl=120 time=43.0 ms
64 bytes from 8.8.8.8: icmp_seq=23290 ttl=120 time=**27.10 ms**
64 bytes from 8.8.8.8: icmp_seq=23291 ttl=120 time=28.0 ms
...


As you can see there is an entry with a decimal of .10 and another with .1 (without the trailing 0).
They should be the same, why the difference?



Thanks in advance










share|improve this question














this is not really a problem, but I'd like to know the reason behind this behavior.



When I ping any IP (eg 8.8.8.8) I get:



...
64 bytes from 8.8.8.8: icmp_seq=23283 ttl=120 time=50.4 ms
64 bytes from 8.8.8.8: icmp_seq=23284 ttl=120 time=**43.1 ms**
64 bytes from 8.8.8.8: icmp_seq=23285 ttl=120 time=43.0 ms
64 bytes from 8.8.8.8: icmp_seq=23290 ttl=120 time=**27.10 ms**
64 bytes from 8.8.8.8: icmp_seq=23291 ttl=120 time=28.0 ms
...


As you can see there is an entry with a decimal of .10 and another with .1 (without the trailing 0).
They should be the same, why the difference?



Thanks in advance







networking ping






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 17 at 15:25









flash.killerflash.killer

61




61













  • What version of ping (or at least, what version of iputils-ping) is this? Looking at the source, the precision should go from 0 to 3 places depending on the size of the time field - but as far as I can tell the breaks should be at multiples of 10 (i.e. < 1ms, < 10ms, < 100ms)

    – steeldriver
    Mar 17 at 16:40











  • inetutils-ping/cosmic 2:1.9.4-3build1 amd64

    – flash.killer
    Mar 17 at 16:59





















  • What version of ping (or at least, what version of iputils-ping) is this? Looking at the source, the precision should go from 0 to 3 places depending on the size of the time field - but as far as I can tell the breaks should be at multiples of 10 (i.e. < 1ms, < 10ms, < 100ms)

    – steeldriver
    Mar 17 at 16:40











  • inetutils-ping/cosmic 2:1.9.4-3build1 amd64

    – flash.killer
    Mar 17 at 16:59



















What version of ping (or at least, what version of iputils-ping) is this? Looking at the source, the precision should go from 0 to 3 places depending on the size of the time field - but as far as I can tell the breaks should be at multiples of 10 (i.e. < 1ms, < 10ms, < 100ms)

– steeldriver
Mar 17 at 16:40





What version of ping (or at least, what version of iputils-ping) is this? Looking at the source, the precision should go from 0 to 3 places depending on the size of the time field - but as far as I can tell the breaks should be at multiples of 10 (i.e. < 1ms, < 10ms, < 100ms)

– steeldriver
Mar 17 at 16:40













inetutils-ping/cosmic 2:1.9.4-3build1 amd64

– flash.killer
Mar 17 at 16:59







inetutils-ping/cosmic 2:1.9.4-3build1 amd64

– flash.killer
Mar 17 at 16:59












0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126413%2fwhy-does-ping-return-1-and-10%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126413%2fwhy-does-ping-return-1-and-10%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局