Skip to content

Commit

Permalink
fixes for broken test send script
Browse files Browse the repository at this point in the history
  • Loading branch information
GrumpyOldTroll committed Jun 28, 2021
1 parent 7840911 commit d178b6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import argparse
import time
from ipaddress import ip_address
from math import ceil

def main(args_in):
parser = argparse.ArgumentParser(
Expand Down Expand Up @@ -69,7 +70,7 @@ def main(args_in):

count = args.count
if args.duration is not None:
count = ceil(duration * 1000 / args.interval)
count = ceil(args.duration * 1000 / args.interval)

data = ''.join([f'{i:04x}' for i in range((args.size-1)//4 + 1)])[:args.size].encode()

Expand Down

0 comments on commit d178b6c

Please sign in to comment.