Official eMule-Board: The Estimation Of The Number Of Peers - Official eMule-Board

Jump to content


Page 1 of 1

The Estimation Of The Number Of Peers

#1 User is offline   memset 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 07-April 10

Posted 07 April 2010 - 09:04 PM

Hello,
I have difficulties to understand how the number of peers is estimated.

I understand the function, except the third case.


uint32 CRoutingZone::estimateCount()
{
	if( !isLeaf() )
		return 0;

 	if( m_level < KBASE )
		return (pow(2, m_level)*10);

        //I don't understand from here
	CRoutingZone* curZone = m_superZone->m_superZone->m_superZone;
        float modify = ((float)curZone->getNumContacts())/20.0F;
	return (pow( 2, m_level-2))*10*(modify);
}


Why going up to the third super zone to get contacts ? why the division by 20? why mlevel -2 on the last line?

Thanks in advance for your help and consideration.
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users