forked from premiere/premiere-libtorrent
fixed broken build
This commit is contained in:
parent
8542343a0d
commit
ca20d2d600
|
@ -660,6 +660,7 @@ namespace libtorrent
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
std::pair<int, int> preferred_caching() const;
|
||||||
void fill_send_buffer();
|
void fill_send_buffer();
|
||||||
void on_disk_read_complete(int ret, disk_io_job const& j, peer_request r);
|
void on_disk_read_complete(int ret, disk_io_job const& j, peer_request r);
|
||||||
void on_disk_write_complete(int ret, disk_io_job const& j
|
void on_disk_write_complete(int ret, disk_io_job const& j
|
||||||
|
|
|
@ -438,8 +438,6 @@ namespace libtorrent
|
||||||
cache_lru_index_t& ridx = m_read_pieces.get<1>();
|
cache_lru_index_t& ridx = m_read_pieces.get<1>();
|
||||||
i = ridx.begin();
|
i = ridx.begin();
|
||||||
while (i != ridx.end() && now - i->expire > cut_off)
|
while (i != ridx.end() && now - i->expire > cut_off)
|
||||||
{
|
|
||||||
free_piece(const_cast<cached_piece_entry&>(*i), l);
|
|
||||||
{
|
{
|
||||||
free_piece(const_cast<cached_piece_entry&>(*i), l);
|
free_piece(const_cast<cached_piece_entry&>(*i), l);
|
||||||
ridx.erase(i++);
|
ridx.erase(i++);
|
||||||
|
|
|
@ -3852,6 +3852,7 @@ namespace libtorrent
|
||||||
int expiry = 0;
|
int expiry = 0;
|
||||||
if (m_ses.m_settings.guided_read_cache)
|
if (m_ses.m_settings.guided_read_cache)
|
||||||
{
|
{
|
||||||
|
boost::shared_ptr<torrent> t = m_torrent.lock();
|
||||||
int upload_rate = m_statistics.upload_payload_rate();
|
int upload_rate = m_statistics.upload_payload_rate();
|
||||||
if (upload_rate == 0) upload_rate = 1;
|
if (upload_rate == 0) upload_rate = 1;
|
||||||
|
|
||||||
|
@ -3874,7 +3875,7 @@ namespace libtorrent
|
||||||
|
|
||||||
line_size = cache_size;
|
line_size = cache_size;
|
||||||
}
|
}
|
||||||
return std::make_pai(line_size, expiry);
|
return std::make_pair(line_size, expiry);
|
||||||
}
|
}
|
||||||
|
|
||||||
void peer_connection::fill_send_buffer()
|
void peer_connection::fill_send_buffer()
|
||||||
|
|
Loading…
Reference in New Issue