Commit d541e680 by Jesse Keating

Elapsed time should account for the delay

parent 27d90e90
......@@ -92,11 +92,11 @@ def main():
port = int(params['port'])
state = params['state']
start = datetime.datetime.now()
if delay:
time.sleep(delay)
start = datetime.datetime.now()
if state == 'stopped':
### first wait for the host to go down
end = start + datetime.timedelta(seconds=timeout)
......
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