use failed/success rate instead difference for evaluation

This commit is contained in:
orignal
2026-02-25 19:05:43 -05:00
parent 8ab7cfa2a6
commit 2f4e631c98
+3 -2
View File
@@ -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
}