Skip to content

Commit

Permalink
Fix argument for interval
Browse files Browse the repository at this point in the history
  • Loading branch information
Clapfire committed Feb 5, 2019
1 parent 5ca28a6 commit f3eeae7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controller_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if len(sys.argv) == 1:
interval = 1/250
elif len(sys.argv) == 2:
interval = 1/float(sys.argv[0])
interval = 1/float(sys.argv[1])
else:
print("Invalid number of arguments")
interval = False
Expand Down
2 changes: 1 addition & 1 deletion tracker_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if len(sys.argv) == 1:
interval = 1/250
elif len(sys.argv) == 2:
interval = 1/float(sys.argv[0])
interval = 1/float(sys.argv[1])
else:
print("Invalid number of arguments")
interval = False
Expand Down
2 changes: 1 addition & 1 deletion udp_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
if len(sys.argv) == 1:
interval = 1/250
elif len(sys.argv) == 2:
interval = 1/float(sys.argv[0])
interval = 1/float(sys.argv[1])
else:
print("Invalid number of arguments")
interval = False
Expand Down

0 comments on commit f3eeae7

Please sign in to comment.