| 1112 | } |
| 1113 | |
| 1114 | void RouterContext::UpdateStats () |
| 1115 | { |
| 1116 | if (m_IsFloodfill) |
| 1117 | { |
| 1118 | // update routers and leasesets |
| 1119 | m_RouterInfo.SetProperty (i2p::data::ROUTER_INFO_PROPERTY_LEASESETS, std::to_string(i2p::data::netdb.GetNumLeaseSets ())); |
| 1120 | m_RouterInfo.SetProperty (i2p::data::ROUTER_INFO_PROPERTY_ROUTERS, std::to_string(i2p::data::netdb.GetNumRouters ())); |
| 1121 | UpdateRouterInfo (); |
| 1122 | } |
| 1123 | } |
| 1124 | |
| 1125 | void RouterContext::UpdateTimestamp (uint64_t ts) |
| 1126 | { |
nothing calls this directly
no test coverage detected