Наладил сжатие файлов книг в /tmp

This commit is contained in:
Book Pauk
2019-01-21 18:09:50 +07:00
parent 2fd737a2a7
commit 8c85b7be37
6 changed files with 53 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ class FileDownloader {
if (estSize)
prog = Math.round(progress.transferred/estSize*100);
else if (progress.transferred)
prog = Math.round(progress.transferred/(progress.transferred + 100000)*100);
prog = Math.round(progress.transferred/(progress.transferred + 200000)*100);
if (prog != prevProg && callback)
callback(prog);