aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/common.py')
-rw-r--r--youtube/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/common.py b/youtube/common.py
index 76fd7c3..ae2ada1 100644
--- a/youtube/common.py
+++ b/youtube/common.py
@@ -168,7 +168,7 @@ def fetch_url(url, headers=(), timeout=15, report_text=None):
content = response.read()
read_finish = time.time()
if report_text:
- print(report_text, ' Latency:', response_time - start_time, ' Read time:', read_finish - response_time)
+ print(report_text, ' Latency:', round(response_time - start_time,3), ' Read time:', round(read_finish - response_time,3))
content = decode_content(content, response.getheader('Content-Encoding', default='identity'))
return content