Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of response is double the value of the count parameter #106

Open
EdisonInteractiveDave opened this issue May 11, 2023 · 1 comment

Comments

@EdisonInteractiveDave
Copy link

EdisonInteractiveDave commented May 11, 2023

If I set the count=1 I am getting 2 responses:

ping('192.168.46.1', verbose=True, timeout=5, count=0)

Round Trip Times min/avg/max is 0/0/0 ms

ping('192.168.46.1', verbose=True, timeout=5, count=1)
Request timed out
Request timed out

Round Trip Times min/avg/max is 5000/5000/5000 ms

If I set it to 2, I get 4 responses:

ping('192.168.46.1', verbose=True, timeout=5, count=2)
Request timed out
Request timed out
Request timed out
Request timed out

Round Trip Times min/avg/max is 5000/5000.0/5000 ms

3 yields 6 responses and so on.

@RadovanDjurdjevic
Copy link

RadovanDjurdjevic commented Sep 21, 2023

I cant recreate the problem, it seems to work fine.
I wrote in a file that is located in root folder
from pythonping import ping

ping("127.0.0.1", verbose=True, timeout=5, count=4)

run and got:

Reply from 127.0.0.1, 29 bytes in 0.05ms
Reply from 127.0.0.1, 29 bytes in 0.01ms
Reply from 127.0.0.1, 29 bytes in 0.01ms
Reply from 127.0.0.1, 29 bytes in 0.01ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants