Skip to content

Commit

Permalink
Fix statistics calculation (Fix #64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Babak Farrokhi committed Jan 17, 2020
1 parent 78133b4 commit 5ea5968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsping.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def main():
if time_to_next > 0:
time.sleep(time_to_next)

r_sent = i + 1
r_sent = i
r_received = len(response_time)
r_lost = r_sent - r_received
r_lost_percent = (100 * r_lost) / r_sent
Expand Down

0 comments on commit 5ea5968

Please sign in to comment.