stream_throughput: fix port argument

master
Robert Jördens 2021-07-27 14:35:51 +02:00
parent fc60887da3
commit fa63c6c42c
1 changed files with 1 additions and 2 deletions

View File

@ -46,7 +46,6 @@ def parse_packet(buf):
batch_count = int(len(buf) / struct.calcsize(frame_format))
packets = []
for offset in range(batch_count):
data = struct.unpack_from(frame_format, buf)
buf = buf[struct.calcsize(frame_format):]
@ -105,7 +104,7 @@ def sequence_delta(previous_sequence, next_sequence):
def main():
""" Main program. """
parser = argparse.ArgumentParser(description='Measure Stabilizer livestream quality')
parser.add_argument('--port', default=1111, help='The port that stabilizer is streaming to')
parser.add_argument('--port', type=int, default=1111, help='The port that stabilizer is streaming to')
args = parser.parse_args()