From 3c591d4968e01ff3881a4062450f924186b120cc Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 11 Nov 2019 20:43:52 -0500 Subject: [PATCH] update time_to_first_bytes.py --- lbry/scripts/time_to_first_byte.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/scripts/time_to_first_byte.py b/lbry/scripts/time_to_first_byte.py index b1bd0085f..1b6fc5d01 100644 --- a/lbry/scripts/time_to_first_byte.py +++ b/lbry/scripts/time_to_first_byte.py @@ -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']):