mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-05-29 21:10:24 +02:00
Changed reporting rates for sequential downloads.
This commit is contained in:
parent
220f50d3bb
commit
670a4c61ff
@ -748,9 +748,9 @@ class VideoDownload {
|
|||||||
return sourceLength!!;
|
return sourceLength!!;
|
||||||
}
|
}
|
||||||
private fun downloadSource_Sequential(client: ManagedHttpClient, fileStream: FileOutputStream, url: String, onProgress: (Long, Long, Long) -> Unit): Long {
|
private fun downloadSource_Sequential(client: ManagedHttpClient, fileStream: FileOutputStream, url: String, onProgress: (Long, Long, Long) -> Unit): Long {
|
||||||
val progressRate: Int = 4096 * 25;
|
val progressRate: Int = 4096 * 5;
|
||||||
var lastProgressCount: Int = 0;
|
var lastProgressCount: Int = 0;
|
||||||
val speedRate: Int = 4096 * 25;
|
val speedRate: Int = 4096 * 5;
|
||||||
var readSinceLastSpeedTest: Long = 0;
|
var readSinceLastSpeedTest: Long = 0;
|
||||||
var timeSinceLastSpeedTest: Long = System.currentTimeMillis();
|
var timeSinceLastSpeedTest: Long = System.currentTimeMillis();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user