Browse Source

make sure not all routers get deleted after long break

pull/14/head
orignal 11 years ago
parent
commit
6385f4554e
  1. 3
      NetDb.cpp

3
NetDb.cpp

@ -222,7 +222,10 @@ namespace data
{ {
// RouterInfo expires in 72 hours if more than 300 // RouterInfo expires in 72 hours if more than 300
if (total > 300 && ts > it.second->GetTimestamp () + 3*24*3600*1000LL) // 3 days if (total > 300 && ts > it.second->GetTimestamp () + 3*24*3600*1000LL) // 3 days
{
total--;
it.second->SetUnreachable (true); it.second->SetUnreachable (true);
}
if (it.second->IsUnreachable ()) if (it.second->IsUnreachable ())
{ {

Loading…
Cancel
Save