make sure not all routers get deleted after long break

This commit is contained in:
orignal 2014-01-22 20:48:08 -05:00
parent 6c6d013a76
commit 6385f4554e

View File

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