summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-05 01:32:44 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-05 01:32:44 -0300
commit6562f4f55710415f06d5b6f6faf330636fccee7e (patch)
treeadd55c3c41a98ea51adacc0ecafa6256f3b030a8
parentf26c662a9aca1b46c9b46dfcf5fbd802b602b006 (diff)
downloadclient-6562f4f55710415f06d5b6f6faf330636fccee7e.tar.gz
client-6562f4f55710415f06d5b6f6faf330636fccee7e.tar.bz2
client-6562f4f55710415f06d5b6f6faf330636fccee7e.tar.xz
client-6562f4f55710415f06d5b6f6faf330636fccee7e.zip
There is no reason to NOT use 8192 blocks
-rw-r--r--game/misc.rpy3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/misc.rpy b/game/misc.rpy
index d13d473..9bf6ac0 100644
--- a/game/misc.rpy
+++ b/game/misc.rpy
@@ -401,7 +401,8 @@ init python:
## Download the file, slowly as it may be...
max_value = int(r.headers.get('content-length', 0))
print "Blocks: %d" % max_value
- block_size = 1024 #1 Kibibyte
+ ## TODO: use blocks of 1024 on DSL and 1048576 on broadband?
+ block_size = 8192
max_value = max_value / block_size
statusmsg = "Downloading the zip file..."
with open(get_path("allinone.zip"), 'wb') as f: