..
This commit is contained in:
parent
92d228d2e0
commit
9526104a4a
@ -165,7 +165,7 @@ class TorrentService : Service() {
|
||||
|
||||
// 2. 파일 다운로드: 계산된 점수(finalScore)가 낮은 순으로 정렬
|
||||
if (isCharging) {
|
||||
val maxSlots = if (isWifiConnected) 7 else 2
|
||||
val maxSlots = if (isWifiConnected) 5 else 1
|
||||
val sortedByPriority = torrentsWithMetadata.sortedBy { it.second }
|
||||
|
||||
sortedByPriority.forEachIndexed { index, pair ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user