update time_to_first_bytes.py

This commit is contained in:
Jack Robison 2019-11-11 20:43:52 -05:00
parent cf356a8e35
commit 3c591d4968
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -37,7 +37,7 @@ def variance(times):
async def wait_for_done(conf, claim_name, timeout):
blobs_completed, last_completed = 0, time.perf_counter()
while True:
file = (await daemon_rpc(conf, "file_list", claim_name=claim_name))[0]
file = (await daemon_rpc(conf, "file_list", claim_name=claim_name))['items'][0]
if file['status'] in ['finished', 'stopped']:
return True, file['blobs_completed'], file['blobs_in_stream']
elif blobs_completed < int(file['blobs_completed']):