예제 #1
0
파일: Profiling.cpp 프로젝트: h0bbyte/i2pd
	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;	
	}
예제 #2
0
파일: Profiling.cpp 프로젝트: 7histle/i2pd
	bool RouterProfile::IsBad () const 
	{ 
		return IsAlwaysDeclining () || IsNonResponding () || IsLowPartcipationRate (); 
	}