fix release build and tune want_tick
This commit is contained in:
parent
f1c998c1ef
commit
06bf225237
|
@ -232,7 +232,7 @@ public:
|
||||||
|
|
||||||
int data_size() const { return int(m_map.size()); }
|
int data_size() const { return int(m_map.size()); }
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_LOGGING
|
#if defined TORRENT_DEBUG
|
||||||
void print_state(std::ostream& os) const
|
void print_state(std::ostream& os) const
|
||||||
{ m_table.print_state(os); }
|
{ m_table.print_state(os); }
|
||||||
#endif
|
#endif
|
||||||
|
@ -248,7 +248,7 @@ public:
|
||||||
, udp::endpoint const& addr);
|
, udp::endpoint const& addr);
|
||||||
|
|
||||||
std::string generate_token(udp::endpoint const& addr, char const* info_hash);
|
std::string generate_token(udp::endpoint const& addr, char const* info_hash);
|
||||||
|
|
||||||
// the returned time is the delay until connection_timeout()
|
// the returned time is the delay until connection_timeout()
|
||||||
// should be called again the next time
|
// should be called again the next time
|
||||||
time_duration connection_timeout();
|
time_duration connection_timeout();
|
||||||
|
|
|
@ -170,9 +170,9 @@ public:
|
||||||
// i.e. essentially the number of full buckets
|
// i.e. essentially the number of full buckets
|
||||||
// we have
|
// we have
|
||||||
int depth() const;
|
int depth() const;
|
||||||
|
|
||||||
int num_active_buckets() const { return m_buckets.size(); }
|
int num_active_buckets() const { return m_buckets.size(); }
|
||||||
|
|
||||||
void replacement_cache(bucket_t& nodes) const;
|
void replacement_cache(bucket_t& nodes) const;
|
||||||
|
|
||||||
#if defined TORRENT_DEBUG
|
#if defined TORRENT_DEBUG
|
||||||
|
|
|
@ -5909,7 +5909,7 @@ retry:
|
||||||
{
|
{
|
||||||
if (m_pending_auto_manage || m_abort) return;
|
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.
|
// put it off one second.
|
||||||
if (time_now() - m_last_auto_manage < seconds(1))
|
if (time_now() - m_last_auto_manage < seconds(1))
|
||||||
{
|
{
|
||||||
|
|
|
@ -7872,7 +7872,7 @@ namespace libtorrent
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// if we don't get ticks we won't become inactive
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue