fix release build and tune want_tick

This commit is contained in:
Arvid Norberg 2015-05-26 20:09:19 +00:00
parent f1c998c1ef
commit 06bf225237
4 changed files with 6 additions and 6 deletions

View File

@ -232,7 +232,7 @@ public:
int data_size() const { return int(m_map.size()); }
#ifndef TORRENT_DISABLE_LOGGING
#if defined TORRENT_DEBUG
void print_state(std::ostream& os) const
{ m_table.print_state(os); }
#endif
@ -248,7 +248,7 @@ public:
, udp::endpoint const& addr);
std::string generate_token(udp::endpoint const& addr, char const* info_hash);
// the returned time is the delay until connection_timeout()
// should be called again the next time
time_duration connection_timeout();

View File

@ -170,9 +170,9 @@ public:
// i.e. essentially the number of full buckets
// we have
int depth() const;
int num_active_buckets() const { return m_buckets.size(); }
void replacement_cache(bucket_t& nodes) const;
#if defined TORRENT_DEBUG

View File

@ -5909,7 +5909,7 @@ retry:
{
if (m_pending_auto_manage || m_abort) return;
// we we recalculated auto-managed torrents less than a second ago,
// we recalculated auto-managed torrents less than a second ago,
// put it off one second.
if (time_now() - m_last_auto_manage < seconds(1))
{

View File

@ -7872,7 +7872,7 @@ namespace libtorrent
return true;
// if we don't get ticks we won't become inactive
if (!m_inactive) return true;
if (m_allow_peers && !m_inactive) return true;
return false;
}