From 2abf94d46c8ea5dfe782ff822454238f6d5d3d09 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 23 Aug 2013 09:31:09 -0500 Subject: [PATCH] Improve performance when reading data after upload. See #31 --- speedtest_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speedtest_cli.py b/speedtest_cli.py index 84659a0..3defdd7 100755 --- a/speedtest_cli.py +++ b/speedtest_cli.py @@ -205,7 +205,7 @@ class FilePutter(threading.Thread): try: if (time.time() - self.starttime) <= 10: f = urlopen(self.url, self.data) - contents = f.read() + f.read(11) f.close() self.result = len(self.data) else: