From 9de0663cc7fa255fa454eca7951aac49c113b3c2 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Wed, 1 Mar 2017 16:20:38 +0100 Subject: [PATCH] msg: fix bytes argument --- src/msg_client.py | 2 +- src/msg_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msg_client.py b/src/msg_client.py index 3c92de2..11fd8c3 100644 --- a/src/msg_client.py +++ b/src/msg_client.py @@ -15,7 +15,7 @@ parser = argparse.ArgumentParser(description="Msg client") parser.add_argument("-s", "--sleep", type=float, help="sleep time between two sendings", default=5.0) parser.add_argument("-n", "--nb", type=int, help="number of requests done", default=5) parser.add_argument("-B", "--bulk", help="if set, don't wait for reply to send another packet", action="store_true") -parser.add_argument("-b", "--bytes", type=float, help="number of bytes to send and receive", default=1200) +parser.add_argument("-b", "--bytes", type=int, help="number of bytes to send and receive", default=1200) args = parser.parse_args() diff --git a/src/msg_server.py b/src/msg_server.py index d29272b..9e95e2c 100644 --- a/src/msg_server.py +++ b/src/msg_server.py @@ -14,7 +14,7 @@ to_join = [] parser = argparse.ArgumentParser(description="Msg server") parser.add_argument("-s", "--sleep", type=float, help="sleep time between reception and sending", default=5.0) -parser.add_argument("-b", "--bytes", type=float, help="number of bytes to send and receive", default=1200) +parser.add_argument("-b", "--bytes", type=int, help="number of bytes to send and receive", default=1200) args = parser.parse_args()