Elapsed time should account for the delay

reviewable/pr18780/r1
Jesse Keating 12 years ago
parent 49846ae945
commit 6a1d6ee25f

@ -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)

Loading…
Cancel
Save