We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c39859 commit 281b645Copy full SHA for 281b645
tcp_latency/tcp_latency.py
@@ -86,9 +86,10 @@ def measure_latency(
86
if i == len(range(runs))-1:
87
print(f'--- {host} tcp-latency statistics ---')
88
print(f'{i+1} packets transmitted')
89
- if latency_points:
+ received_points = [point for point in latency_points if point]
90
+ if received_points:
91
print(
- f'rtt min/avg/max = {min(latency_points)}/{mean(latency_points)}/{max(latency_points)} ms', # noqa: E501
92
+ f'rtt min/avg/max = {min(received_points)}/{mean(received_points)}/{max(received_points)} ms', # noqa: E501
93
)
94
95
latency_points.append(last_latency_point)
0 commit comments