From fa63c6c42c7809b0a4b16acf7a3f7a38a5c2a44e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 27 Jul 2021 14:35:51 +0200 Subject: [PATCH] stream_throughput: fix port argument --- scripts/stream_throughput.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/stream_throughput.py b/scripts/stream_throughput.py index ca3ccd4..f398dae 100644 --- a/scripts/stream_throughput.py +++ b/scripts/stream_throughput.py @@ -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()