make the definition of routing table depth a bit more reliaxed in the DHT

This commit is contained in:
Arvid Norberg 2013-11-02 16:07:47 +00:00
parent 58b4d85445
commit 0f298dbe88
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ int routing_table::depth() const
for (table_t::const_iterator i = m_buckets.begin()
, end(m_buckets.end()); i != end; ++i)
{
if (i->live_nodes.size() < m_bucket_size)
if (i->live_nodes.size() < m_bucket_size / 2)
break;
// this bucket is full
++deepest_bucket;