From cb069bcb40d8cab81a50c8d28c9c86eb879fba3c Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Wed, 2 May 2018 16:44:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=B0=D1=82=D0=B0+=D0=BC=D1=8F=D1=83=3D?= =?UTF-8?q?=D0=9B=D0=90=D0=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/Installer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/Installer.lua b/Applications/Installer.lua index 6b7f7f49..e5694a60 100644 --- a/Applications/Installer.lua +++ b/Applications/Installer.lua @@ -157,7 +157,7 @@ local function download(url, path, totalProgress) until responseCode -- Downloading file by chunks - local contentLength = 100 + local contentLength = 12 * 1024 * 1024 local currentLength = 0 if responseData and responseData["Content-Length"] then @@ -167,7 +167,7 @@ local function download(url, path, totalProgress) while true do local data, reason = requestHandle.read(math.huge) if data then - currentLength = currentLength + unicode.len(data) + currentLength = currentLength + #data local percent = currentLength / contentLength progressBar(y, percent, properties.localization.currentFile, totalProgress, tostring(math.ceil(percent)), path)