Skip to content

Commit

Permalink
add time sleep 1 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
dowiz committed Jun 8, 2024
1 parent ab98e8d commit 27b2d0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions do.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def send_icmp_packet(destination):
for _ in range(num_packets):
reply = send_icmp_packet(destination)
response_times.append(reply)
time.sleep(1)
lost_packets = response_times.count(None)
packet_loss_percentage = int((lost_packets / num_packets) * 100)
min_time = min(response_times)
Expand Down

0 comments on commit 27b2d0b

Please sign in to comment.