From 60c5b4a7d0db1c0903fb20c12b672fe4c3e227f7 Mon Sep 17 00:00:00 2001 From: joecqupt Date: Sat, 14 Jan 2023 02:00:34 +0800 Subject: [PATCH] update DownloadUtils: clear hardcode --- boot/src/main/java/com/taobao/arthas/boot/DownloadUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/src/main/java/com/taobao/arthas/boot/DownloadUtils.java b/boot/src/main/java/com/taobao/arthas/boot/DownloadUtils.java index 9a37fcc57..4800d9b18 100644 --- a/boot/src/main/java/com/taobao/arthas/boot/DownloadUtils.java +++ b/boot/src/main/java/com/taobao/arthas/boot/DownloadUtils.java @@ -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();