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

Print also timeouts #175

Closed
wants to merge 5 commits into from
Closed

Conversation

kbucheli
Copy link
Contributor

I need the result of every individual ping printed out. Currently it only prints if there is some kind of a reply.
With this patch there is also a line on a timeout.

@kbucheli
Copy link
Contributor Author

the output now looks like this:

# fping --count 4 --timestamp  80.157.129.54 195.48.41.101 4.2.2.6 8.8.4.4 8.20.247.20
[1585061216.814108] 8.8.4.4       : [0], 84 bytes, 0.59 ms (0.59 avg, 0% loss)
[1585061217.783263] 80.157.129.54 : [0], timed out (no avg, 100% loss)
[1585061217.783821] 80.157.129.54 : [1], 84 bytes, 0.51 ms (0.51 avg, 50% loss)
[1585061217.793410] 195.48.41.101 : [0], timed out (no avg, 100% loss)
[1585061217.803605] 4.2.2.6       : [0], timed out (no avg, 100% loss)
[1585061217.804052] 4.2.2.6       : [1], 84 bytes, 0.42 ms (0.42 avg, 50% loss)
[1585061217.814224] 8.8.4.4       : [1], 84 bytes, 0.48 ms (0.53 avg, 0% loss)
[1585061217.823851] 8.20.247.20   : [0], timed out (no avg, 100% loss)
[1585061217.826248] 8.20.247.20   : [1], 84 bytes, 2.37 ms (2.37 avg, 50% loss)
[1585061218.784555] 80.157.129.54 : [2], 84 bytes, 0.62 ms (0.56 avg, 33% loss)
[1585061218.794041] 195.48.41.101 : [1], timed out (no avg, 100% loss)
[1585061218.794593] 195.48.41.101 : [2], 84 bytes, 0.51 ms (0.51 avg, 66% loss)
[1585061218.804703] 4.2.2.6       : [2], 84 bytes, 0.53 ms (0.47 avg, 33% loss)
[1585061218.825048] 8.20.247.20   : [2], 84 bytes, 0.52 ms (1.44 avg, 33% loss)
[1585061219.785245] 80.157.129.54 : [3], 84 bytes, 0.75 ms (0.62 avg, 25% loss)
[1585061219.805356] 4.2.2.6       : [3], 84 bytes, 0.53 ms (0.49 avg, 25% loss)
[1585061219.814943] 8.8.4.4       : [2], timed out (0.53 avg, 33% loss)
[1585061219.825726] 8.20.247.20   : [3], 84 bytes, 0.53 ms (1.14 avg, 25% loss)
[1585061220.794717] 195.48.41.101 : [3], timed out (0.51 avg, 75% loss)
[1585061220.815071] 8.8.4.4       : [3], timed out (0.53 avg, 50% loss)

80.157.129.54 : xmt/rcv/%loss = 4/3/25%, min/avg/max = 0.51/0.62/0.75
195.48.41.101 : xmt/rcv/%loss = 4/1/75%, min/avg/max = 0.51/0.51/0.51
4.2.2.6       : xmt/rcv/%loss = 4/3/25%, min/avg/max = 0.42/0.49/0.53
8.8.4.4       : xmt/rcv/%loss = 4/2/50%, min/avg/max = 0.48/0.53/0.59
8.20.247.20   : xmt/rcv/%loss = 4/3/25%, min/avg/max = 0.52/1.14/2.37
#

@schweikert
Copy link
Owner

Nice idea, thanks Konrad! fping 5.0 will contain a refactored timeout-handing code, so I reimplemented this functionality using that.

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

Successfully merging this pull request may close these issues.

2 participants