mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
publish number of leasets and routers for floodfill
This commit is contained in:
parent
647bb501d1
commit
0b754ec65d
6 changed files with 28 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue