MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / UpdateStats

Method UpdateStats

libi2pd/RouterContext.cpp:1114–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

to_stringFunction · 0.85
SetPropertyMethod · 0.80
GetNumLeaseSetsMethod · 0.80
GetNumRoutersMethod · 0.80

Tested by

no test coverage detected