diff --git a/library/src/main/java/com/aspsine/multithreaddownload/core/DownloaderImpl.java b/library/src/main/java/com/aspsine/multithreaddownload/core/DownloaderImpl.java index ed3af93..b2b414d 100644 --- a/library/src/main/java/com/aspsine/multithreaddownload/core/DownloaderImpl.java +++ b/library/src/main/java/com/aspsine/multithreaddownload/core/DownloaderImpl.java @@ -254,7 +254,7 @@ private List getMultiThreadInfos(long length) { final long start = average * i; final long end; if (i == threadNum - 1) { - end = length; + end = length - 1; } else { end = start + average - 1; }