diff --git a/Aria/build.gradle b/Aria/build.gradle index 34ed5e0f..7b8287a2 100644 --- a/Aria/build.gradle +++ b/Aria/build.gradle @@ -22,8 +22,8 @@ dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' -// compile project(':AriaCompiler') - compile project(':AriaAnnotations') + compile project(':AriaCompiler') +// compile project(':AriaAnnotations') } //apply from: 'bintray-release.gradle' //apply from: 'jcenter.gradle' diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/SingleThreadTask.java b/Aria/src/main/java/com/arialyy/aria/core/download/SingleThreadTask.java index c4dc1b65..b6233744 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/SingleThreadTask.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/SingleThreadTask.java @@ -44,10 +44,6 @@ final class SingleThreadTask implements Runnable { private int mBufSize; private IDownloadListener mListener; private DownloadStateConstance CONSTANCE; - - /** - * speed = (bufSize / 1024) * CoresNum / sleepTime; (8192 / 1024) * 4 / 1= 32 kb/s - */ private long mSleepTime = 0; SingleThreadTask(DownloadStateConstance constance, IDownloadListener listener, @@ -71,8 +67,7 @@ final class SingleThreadTask implements Runnable { } else { BigDecimal db = new BigDecimal( ((mBufSize / 1024) * (filterVersion() ? 1 : CONSTANCE.THREAD_NUM) / maxSpeed) * 1000); - db.setScale(0, BigDecimal.ROUND_HALF_UP); - mSleepTime = db.longValue(); + mSleepTime = db.setScale(0, BigDecimal.ROUND_HALF_UP).longValue(); } } diff --git a/img/11.gif b/img/11.gif deleted file mode 100644 index ff6359c0..00000000 Binary files a/img/11.gif and /dev/null differ diff --git a/img/max_speed.gif b/img/max_speed.gif new file mode 100644 index 00000000..60d08f04 Binary files /dev/null and b/img/max_speed.gif differ diff --git a/img/popupwindow_use.gif b/img/popupwindow_use.gif deleted file mode 100644 index af3df1ce..00000000 Binary files a/img/popupwindow_use.gif and /dev/null differ