diff --git a/speedtest-cli b/speedtest-cli index dc0288e..9bd5f57 100755 --- a/speedtest-cli +++ b/speedtest-cli @@ -71,7 +71,7 @@ class FileGetter(threading.Thread): f = urllib2.urlopen(self.url) self.result = 0 while 1: - contents = f.read(1024) + contents = f.read(10240) if contents: self.result += len(contents) else: diff --git a/speedtest-cli-3 b/speedtest-cli-3 index 67dd619..8112a96 100755 --- a/speedtest-cli-3 +++ b/speedtest-cli-3 @@ -64,7 +64,7 @@ class FileGetter(threading.Thread): f = urllib.request.urlopen(self.url) self.result = 0 while 1: - contents = f.read(1024) + contents = f.read(10240) if contents: self.result += len(contents) else: