diff --git a/include/libtorrent/kademlia/node.hpp b/include/libtorrent/kademlia/node.hpp index 78323c2f0..8752af833 100644 --- a/include/libtorrent/kademlia/node.hpp +++ b/include/libtorrent/kademlia/node.hpp @@ -123,9 +123,11 @@ public: data_iterator end_data() { return m_map.end(); } int data_size() const { return int(m_map.size()); } +#ifdef TORRENT_DHT_VERBOSE_LOGGING void print_state(std::ostream& os) const { m_table.print_state(os); } - +#endif + void announce(sha1_hash const& info_hash, int listen_port , boost::function const& , sha1_hash const&)> f); diff --git a/include/libtorrent/time.hpp b/include/libtorrent/time.hpp index b5fbc0ad1..2470522c0 100644 --- a/include/libtorrent/time.hpp +++ b/include/libtorrent/time.hpp @@ -91,6 +91,7 @@ namespace libtorrent struct time_duration { time_duration() {} + time_duration operator/(int rhs) const { return time_duration(diff / rhs); } explicit time_duration(boost::int64_t d) : diff(d) {} boost::int64_t diff; };