mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 22:52:31 +00:00
* ChunkSelector selected from outside the priority ranges due to
~(char)0 giving an inverted integer rather than char. * Fixed a segfault due to too small screen size, snprintf returns the number of bytes that could have been written rather than how much actually was. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@626 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -126,7 +126,7 @@ Download::set_priority(uint32_t p) {
|
||||
if (p >= 4)
|
||||
throw torrent::input_error("Priority out of range.");
|
||||
|
||||
torrent::download_set_priority(m_download, p * 2);
|
||||
torrent::download_set_priority(m_download, p * p);
|
||||
get_bencode().get_key("rtorrent").insert_key("priority", (int64_t)p);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user