Elapsed time should account for the delay

pull/4420/head
Jesse Keating 2013-06-27 17:37:40 -07:00
parent 27d90e9003
commit d541e68027
1 changed files with 2 additions and 2 deletions

View File

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