Beispiel #1
0
	bool RouterProfile::IsBad ()
	{ 
		auto isBad = IsAlwaysDeclining () || IsLowPartcipationRate () /*|| IsLowReplyRate ()*/;
		if (isBad && m_NumTimesRejected > 10*(m_NumTimesTaken + 1)) 
		{
			// reset profile
			m_NumTunnelsAgreed = 0;
			m_NumTunnelsDeclined = 0;
			m_NumTunnelsNonReplied = 0;
			isBad = false;
		}		
		if (isBad) m_NumTimesRejected++; else m_NumTimesTaken++;
		return isBad;	
	}
Beispiel #2
0
	bool RouterProfile::IsBad () const 
	{ 
		return IsAlwaysDeclining () || IsNonResponding () || IsLowPartcipationRate (); 
	}