prio range fix from andar

This commit is contained in:
Marcos Pinto 2007-09-04 16:40:40 +00:00
parent 692cd471f1
commit 1ac7e0eaab
1 changed files with 1 additions and 1 deletions

View File

@ -1827,7 +1827,7 @@ static PyObject *torrent_prioritize_first_last_pieces(PyObject *self,
}
int start_piece = tor_info.map_file(i, 0, 0).piece;
int end_piece = tor_info.map_file(i, file.size, 0).piece;
int end_piece = tor_info.map_file(i, file.size, 0).piece -1;
// Set prio_size to 1% of the file size
size_type prio_size = file.size / 100;
int prio_pieces = tor_info.map_file(i, prio_size, 0).piece -