fix output
This commit is contained in:
@@ -143,11 +143,12 @@ def main():
|
|||||||
if end:
|
if end:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
states = []
|
||||||
for host in hosts:
|
for host in hosts:
|
||||||
if host.is_alive():
|
states.append(not host.is_alive())
|
||||||
break
|
|
||||||
|
if all(states):
|
||||||
end = True
|
end = True
|
||||||
break
|
|
||||||
|
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user