update DownloadUtils: clear hardcode

This commit is contained in:
joecqupt
2023-01-17 11:29:57 +08:00
committed by hengyunabc
parent 5491f6b427
commit 60c5b4a7d0
@@ -118,7 +118,7 @@ public class DownloadUtils {
int totalCount = 0;
int count;
long lastPrintTime = System.currentTimeMillis();
while ((count = in.read(data, 0, 1024 * 1024)) != -1) {
while ((count = in.read(data, 0, data.length)) != -1) {
totalCount += count;
if (printProgress) {
long now = System.currentTimeMillis();