Commit 279f4e71 authored by Alexandre's avatar Alexandre
Browse files

Fix when success on last connection in loop

parent 45d32805
......@@ -936,7 +936,7 @@ for connectTo in ip_set:
if delay is not None:
time.sleep(delay)
else:
ok = run_check(conn)
ok = run_check(conn) and ok # need to run run_check first
stop = time.time()
if tests > 1:
extra = ", %.2f ms/request if we ignore the first one" % ((stop-start2)*1000/(tests-1))
......
Supports Markdown
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