mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2025-02-15 00:51:28 +01:00
Update chunk size per bentaylornz
This commit is contained in:
parent
1ccde43556
commit
58ab64c42f
@ -90,7 +90,7 @@ class Downloader:
|
|||||||
response = self.open_url(url, headers)
|
response = self.open_url(url, headers)
|
||||||
if not response:
|
if not response:
|
||||||
return None
|
return None
|
||||||
CHUNK = 16 * 1024
|
CHUNK = 1024 * 1024
|
||||||
bytes_so_far = 0
|
bytes_so_far = 0
|
||||||
try:
|
try:
|
||||||
total_size = int(response.headers['Content-Length'])
|
total_size = int(response.headers['Content-Length'])
|
||||||
@ -111,7 +111,7 @@ class Downloader:
|
|||||||
response = self.open_url(url, headers)
|
response = self.open_url(url, headers)
|
||||||
if not response:
|
if not response:
|
||||||
return None
|
return None
|
||||||
CHUNK = 16 * 1024
|
CHUNK = 1024 * 1024
|
||||||
bytes_so_far = 0
|
bytes_so_far = 0
|
||||||
try:
|
try:
|
||||||
total_size = int(response.headers['Content-Length'])
|
total_size = int(response.headers['Content-Length'])
|
||||||
@ -132,7 +132,7 @@ class Downloader:
|
|||||||
response = self.open_url(url, headers)
|
response = self.open_url(url, headers)
|
||||||
if not response:
|
if not response:
|
||||||
return None
|
return None
|
||||||
CHUNK = 16 * 1024
|
CHUNK = 1024 * 1024
|
||||||
bytes_so_far = 0
|
bytes_so_far = 0
|
||||||
try:
|
try:
|
||||||
total_size = int(response.headers['Content-Length'])
|
total_size = int(response.headers['Content-Length'])
|
||||||
|
Loading…
Reference in New Issue
Block a user