get family string from local RouterInfo

This commit is contained in:
orignal 2016-04-28 18:16:11 -04:00
parent c5f2890cbe
commit 5e2dc14dd5
6 changed files with 15 additions and 15 deletions

View file

@ -417,7 +417,9 @@ namespace util
default: s << "Unknown";
}
s << "<br>\r\n";
s << "<b>Family:</b> " << i2p::context.GetFamilyString() << "<br>\r\n";
auto family = i2p::context.GetFamily ();
if (family.length () > 0)
s << "<b>Family:</b> " << family << "<br>\r\n";
s << "<b>Tunnel creation success rate:</b> " << i2p::tunnel::tunnels.GetTunnelCreationSuccessRate () << "%<br>\r\n";
s << "<b>Received:</b> ";
s << std::fixed << std::setprecision(2);