diff options
author | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-24 00:30:21 +0000 |
---|---|---|
committer | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-24 00:30:21 +0000 |
commit | dbbace5f23bd51465d5e362ade3899286b5a18e5 (patch) | |
tree | 240a0e3a9b650dde3a23fe044b80a65c6232b2e4 | |
parent | a534f236614c8daa2f4e53b98409b7f7553a02c8 (diff) | |
download | deluge-dbbace5f23bd51465d5e362ade3899286b5a18e5.tar.gz deluge-dbbace5f23bd51465d5e362ade3899286b5a18e5.tar.bz2 deluge-dbbace5f23bd51465d5e362ade3899286b5a18e5.zip |
piece picker priority fix
-rwxr-xr-x | libtorrent/include/libtorrent/piece_picker.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtorrent/include/libtorrent/piece_picker.hpp b/libtorrent/include/libtorrent/piece_picker.hpp index ec6fc5bd3..2c62e5d8b 100755 --- a/libtorrent/include/libtorrent/piece_picker.hpp +++ b/libtorrent/include/libtorrent/piece_picker.hpp @@ -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; |