msg: fix bytes argument
This commit is contained in:
parent
5833eecc54
commit
9de0663cc7
@ -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("-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("-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", "--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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ to_join = []
|
|||||||
|
|
||||||
parser = argparse.ArgumentParser(description="Msg server")
|
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("-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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user