mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
12 hours expiration if more than 2500 routers
This commit is contained in:
@@ -375,6 +375,14 @@ namespace data
|
|||||||
total--;
|
total--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (total > 2500)
|
||||||
|
{
|
||||||
|
if (ts > it.second->GetTimestamp () + 12*3600*1000LL) // 12 hours
|
||||||
|
{
|
||||||
|
it.second->SetUnreachable (true);
|
||||||
|
total--;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (total > 300)
|
else if (total > 300)
|
||||||
{
|
{
|
||||||
if (ts > it.second->GetTimestamp () + 30*3600*1000LL) // 30 hours
|
if (ts > it.second->GetTimestamp () + 30*3600*1000LL) // 30 hours
|
||||||
|
|||||||
Reference in New Issue
Block a user