Skip to content

Commit

Permalink
revert 12464c5
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Jul 16, 2020
1 parent 12464c5 commit 220fbe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions udpping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

from __future__ import print_function
from __future__ import print_function

import socket
import sys
Expand Down Expand Up @@ -54,7 +54,7 @@ def random_string(length):

exit()

IP=socket.gethostbyname(sys.argv[1])
IP=sys.argv[1]
PORT=int(sys.argv[2])

is_ipv6=0;
Expand All @@ -64,7 +64,7 @@ def random_string(length):

if len(sys.argv)==4:
exec(sys.argv[3])

if LEN<5:
print("LEN must be >=5")
exit()
Expand All @@ -89,7 +89,7 @@ def random_string(length):
deadline = time.time() + INTERVAL/1000.0
received=0
rtt=0.0

while True:
timeout=deadline - time.time()
if timeout <0:
Expand Down

0 comments on commit 220fbe6

Please sign in to comment.