publish number of leasets and routers for floodfill

This commit is contained in:
orignal 2015-03-18 15:06:15 -04:00
parent 647bb501d1
commit 0b754ec65d
6 changed files with 28 additions and 4 deletions

View file

@ -173,7 +173,8 @@ namespace data
}
lastSave = ts;
}
if (ts - lastPublish >= 2400) // publish every 40 minutes
if (i2p::context.GetLastUpdateTime () > lastPublish || // our router has been updated
ts - lastPublish >= 2400) // or publish every 40 minutes
{
Publish ();
lastPublish = ts;