dgzlopes/tcp-latency

human output shows wrong amount of transmitted packets

schlomo opened this issue · 0 comments

Thanks a lot for this useful library/tool!

It says 2 out of 3 packets transmitted successfully but there are 3 results, can this be a bug?

In [58]: tcp_latency.measure_latency("google.com", runs=3, human_output=True)
tcp-latency google.com
google.com: tcp seq=0 port=443 timeout=5 time=14.383041998371482 ms
google.com: tcp seq=1 port=443 timeout=5 time=13.783250004053116 ms
google.com: tcp seq=2 port=443 timeout=5 time=14.244875172153115 ms
--- google.com tcp-latency statistics ---
2 out of 3 packets transmitted successfully
rtt min/avg/max = 13.783250004053116/14.083146001212299/14.383041998371482 ms
Out[58]: [14.383041998371482, 13.783250004053116, 14.244875172153115]