Browse Source

12 hours expiration if more than 2500 routers

pull/381/head
orignal 8 years ago
parent
commit
2003b34036
  1. 8
      NetDb.cpp

8
NetDb.cpp

@ -375,6 +375,14 @@ namespace data @@ -375,6 +375,14 @@ namespace data
total--;
}
}
else if (total > 2500)
{
if (ts > it.second->GetTimestamp () + 12*3600*1000LL) // 12 hours
{
it.second->SetUnreachable (true);
total--;
}
}
else if (total > 300)
{
if (ts > it.second->GetTimestamp () + 30*3600*1000LL) // 30 hours

Loading…
Cancel
Save