mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-24 13:34:50 +00:00
piece picker priority fix
This commit is contained in:
parent
0ed95be971
commit
a700009391
1 changed files with 2 additions and 2 deletions
|
@ -360,8 +360,8 @@ namespace libtorrent
|
|||
case 2: return prio - 1;
|
||||
case 3: return (std::max)(prio / 2, 1);
|
||||
case 4: return (std::max)(prio / 2 - 1, 1);
|
||||
case 5:
|
||||
case 6: return (std::min)(prio / 2 - 1, 2);
|
||||
case 5: return (std::max)(prio / 3, 1);
|
||||
case 6: return (std::max)(prio / 3 - 1, 1);
|
||||
case 7: return 1;
|
||||
}
|
||||
return prio;
|
||||
|
|
Loading…
Add table
Reference in a new issue