mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-05-25 20:45:02 +00:00
use failed/success rate instead difference for evaluation
This commit is contained in:
@@ -233,9 +233,10 @@ namespace data
|
||||
bool isBad = false;
|
||||
if (IsAlwaysDeclining () && m_NumTunnelsDeclined)
|
||||
isBad = m_ProfilesRng () % m_NumTunnelsDeclined; // only zero means not bad
|
||||
if (!isBad && IsLowPartcipationRate ())
|
||||
else if (IsLowPartcipationRate ())
|
||||
{
|
||||
auto failed = m_NumTunnelsDeclined + (int)m_NumTunnelsNonReplied - m_NumTunnelsAgreed;
|
||||
auto failed = m_NumTunnelsDeclined + (int)m_NumTunnelsNonReplied;
|
||||
if (m_NumTunnelsAgreed > 0) failed /= m_NumTunnelsAgreed;
|
||||
if (failed > 0)
|
||||
isBad = m_ProfilesRng () % failed; // only zero means not bad
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user