fixed broken build

This commit is contained in:
Arvid Norberg 2010-01-31 20:22:35 +00:00
parent 8542343a0d
commit ca20d2d600
3 changed files with 3 additions and 3 deletions

View File

@ -660,6 +660,7 @@ namespace libtorrent
private:
std::pair<int, int> preferred_caching() const;
void fill_send_buffer();
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

View File

@ -438,8 +438,6 @@ namespace libtorrent
cache_lru_index_t& ridx = m_read_pieces.get<1>();
i = ridx.begin();
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);
ridx.erase(i++);

View File

@ -3852,6 +3852,7 @@ namespace libtorrent
int expiry = 0;
if (m_ses.m_settings.guided_read_cache)
{
boost::shared_ptr<torrent> t = m_torrent.lock();
int upload_rate = m_statistics.upload_payload_rate();
if (upload_rate == 0) upload_rate = 1;
@ -3874,7 +3875,7 @@ namespace libtorrent
line_size = cache_size;
}
return std::make_pai(line_size, expiry);
return std::make_pair(line_size, expiry);
}
void peer_connection::fill_send_buffer()