Fix timer start in measurements

This commit is contained in:
Rafa de la Torre
2019-11-13 12:24:59 +01:00
parent 980657c4a4
commit 5897d8a9cb
@@ -146,6 +146,7 @@ AS $$
rv = plpy.execute(plan, [server_internal], 1) rv = plpy.execute(plan, [server_internal], 1)
port = rv[0]['port'] port = rv[0]['port']
for i in xrange(n_samples):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(timeout_seconds) s.settimeout(timeout_seconds)
@@ -153,7 +154,6 @@ AS $$
samples = [] samples = []
n_errors = 0 n_errors = 0
for i in xrange(n_samples):
try: try:
s.connect((host, int(port))) s.connect((host, int(port)))
t_stop = timer() t_stop = timer()