mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-19 15:46:17 +00:00
* Moved defininiton of priority enum to torrent/common.h.
* Properly return the size of the Block. * Bumped to 0.10.0/0.6.0. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@711 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -150,17 +150,17 @@ ElementFileList::next_priority(Priority p) {
|
||||
// Ahh... do +1 modulo.
|
||||
|
||||
switch(p) {
|
||||
case torrent::File::OFF:
|
||||
return torrent::File::HIGH;
|
||||
case torrent::PRIORITY_OFF:
|
||||
return torrent::PRIORITY_HIGH;
|
||||
|
||||
case torrent::File::NORMAL:
|
||||
return torrent::File::OFF;
|
||||
case torrent::PRIORITY_NORMAL:
|
||||
return torrent::PRIORITY_OFF;
|
||||
|
||||
case torrent::File::HIGH:
|
||||
return torrent::File::NORMAL;
|
||||
|
||||
case torrent::PRIORITY_HIGH:
|
||||
return torrent::PRIORITY_NORMAL;
|
||||
|
||||
default:
|
||||
return torrent::File::NORMAL;
|
||||
return torrent::PRIORITY_NORMAL;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user