forked from premiere/premiere-libtorrent
support queue positions greater than 32768
This commit is contained in:
parent
231fc30e13
commit
f60ea6a4a9
|
@ -1114,6 +1114,10 @@ namespace libtorrent
|
|||
boost::uint32_t m_total_failed_bytes;
|
||||
boost::uint32_t m_total_redundant_bytes;
|
||||
|
||||
// the sequence number for this torrent, this is a
|
||||
// monotonically increasing number for each added torrent
|
||||
int m_sequence_number;
|
||||
|
||||
// ==============================
|
||||
// The following members are specifically
|
||||
// ordered to make the 24 bit members
|
||||
|
@ -1258,10 +1262,6 @@ namespace libtorrent
|
|||
// the number of bytes of padding files
|
||||
unsigned int m_padding:24;
|
||||
|
||||
// the sequence number for this torrent, this is a
|
||||
// monotonically increasing number for each added torrent
|
||||
boost::int16_t m_sequence_number;
|
||||
|
||||
// the scrape data from the tracker response, this
|
||||
// is optional and may be 0xffffff
|
||||
unsigned int m_complete:24;
|
||||
|
|
|
@ -370,6 +370,7 @@ namespace libtorrent
|
|||
, m_piece_time_deviation(0)
|
||||
, m_total_failed_bytes(0)
|
||||
, m_total_redundant_bytes(0)
|
||||
, m_sequence_number(seq)
|
||||
, m_upload_mode_time(0)
|
||||
, m_state(torrent_status::checking_resume_data)
|
||||
, m_storage_mode(p.storage_mode)
|
||||
|
@ -400,7 +401,6 @@ namespace libtorrent
|
|||
, m_queued_for_checking(false)
|
||||
, m_max_connections(~0)
|
||||
, m_padding(0)
|
||||
, m_sequence_number(seq)
|
||||
, m_complete(0xffffff)
|
||||
, m_priority(0)
|
||||
, m_incomplete(0xffffff)
|
||||
|
|
Loading…
Reference in New Issue