From 53d449c72dd11e0f170723d1c4844188136d8888 Mon Sep 17 00:00:00 2001 From: AriaLyy <511455842@qq.com> Date: Thu, 23 Feb 2017 19:22:57 +0800 Subject: [PATCH] .. --- .idea/misc.xml | 2 +- .../main/java/com/arialyy/aria/core/task/SingleThreadTask.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index fbb68289..5d199810 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/Aria/src/main/java/com/arialyy/aria/core/task/SingleThreadTask.java b/Aria/src/main/java/com/arialyy/aria/core/task/SingleThreadTask.java index 317b9da1..d09e1ed7 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/task/SingleThreadTask.java +++ b/Aria/src/main/java/com/arialyy/aria/core/task/SingleThreadTask.java @@ -82,7 +82,7 @@ final class SingleThreadTask implements Runnable { is = conn.getInputStream(); //创建可设置位置的文件 BufferedRandomAccessFile file = - new BufferedRandomAccessFile(mConfigEntity.TEMP_FILE, "rwd", 8192); + new BufferedRandomAccessFile(mConfigEntity.TEMP_FILE, "rwd", BUF_SIZE); //设置文件长度 file.seek(mConfigEntity.START_LOCATION);