mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
changed some profiling parameters
This commit is contained in:
@@ -140,9 +140,9 @@ namespace data
|
|||||||
{
|
{
|
||||||
auto total = m_NumTunnelsAgreed + m_NumTunnelsDeclined;
|
auto total = m_NumTunnelsAgreed + m_NumTunnelsDeclined;
|
||||||
if (elapsedTime < 300) // if less than 5 minutes
|
if (elapsedTime < 300) // if less than 5 minutes
|
||||||
return m_NumTunnelsNonReplied > 10*total;
|
return m_NumTunnelsNonReplied > 5*(total + 1);
|
||||||
else
|
else
|
||||||
return !total && m_NumTunnelsNonReplied > 20;
|
return !total && m_NumTunnelsNonReplied*15 > elapsedTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RouterProfile::IsBad () const
|
bool RouterProfile::IsBad () const
|
||||||
@@ -185,4 +185,4 @@ namespace data
|
|||||||
LogPrint (eLogInfo, num, " obsolete profiles deleted");
|
LogPrint (eLogInfo, num, " obsolete profiles deleted");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user