Commit 32f82f19 authored by William Ellis Warriner's avatar William Ellis Warriner
Browse files

bug fixes

parent 5941375a
...@@ -23,4 +23,4 @@ conda activate dmtcp-tutorial ...@@ -23,4 +23,4 @@ conda activate dmtcp-tutorial
# accepts a checkpoint interval in seconds. The python flag -u requests # accepts a checkpoint interval in seconds. The python flag -u requests
# unbuffered streams, so logging is real-time. The value 100 is the number of # unbuffered streams, so logging is real-time. The value 100 is the number of
# steps to run in the loop in `task.py`. # steps to run in the loop in `task.py`.
dmtcp_launch -i 5 "python -u task.py 100" dmtcp_launch -i 5 python -u task.py 100
...@@ -76,7 +76,7 @@ def interface() -> None: ...@@ -76,7 +76,7 @@ def interface() -> None:
help="positive integer number of steps to run, clipped to 100", help="positive integer number of steps to run, clipped to 100",
) )
args = parser.parse_args() args = parser.parse_args()
steps = args.steps[0] steps = args.steps
steps = min(steps, 100) steps = min(steps, 100)
task(steps) task(steps)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment