mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Fixed progress for sequential downloads.
This commit is contained in:
parent
0b4770188c
commit
0281da1c5a
2 changed files with 2 additions and 2 deletions
|
@ -767,7 +767,7 @@ class VideoDownload {
|
|||
totalRead += read;
|
||||
|
||||
readSinceLastSpeedTest += read;
|
||||
if (totalRead / progressRate > lastProgressCount) {
|
||||
if (totalRead.toDouble() / progressRate > lastProgressCount) {
|
||||
onProgress(sourceLength, totalRead, lastSpeed);
|
||||
lastProgressCount++;
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ class DownloadService : Service() {
|
|||
.readTimeout(Duration.ofMinutes(30))
|
||||
.writeTimeout(Duration.ofMinutes(30))
|
||||
.connectTimeout(Duration.ofSeconds(30))
|
||||
.callTimeout(Duration.ofMinutes(30)))
|
||||
.callTimeout(Duration.ofMinutes(0)))
|
||||
|
||||
private var _started = false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue