More PropertyStream output for PeerFinder

This commit is contained in:
Vinnie Falco
2013-10-06 16:11:22 -07:00
parent 1ae3328642
commit 8dfe53ff7a
4 changed files with 17 additions and 3 deletions

View File

@@ -297,6 +297,8 @@ public:
void onWrite (PropertyStream stream)
{
// VFALCO NOTE this is not thread safe (yet)
stream ["peers"] = m_logic.m_slots.peerCount;
stream ["in"] = m_logic.m_slots.inboundCount;
stream ["out"] = m_logic.m_slots.outboundCount;
@@ -305,6 +307,8 @@ public:
stream ["in_max"] = m_logic.m_slots.inboundSlotsMaximum;
stream ["minutes"] = m_logic.m_slots.uptimeMinutes();
stream ["round"] = m_logic.m_slots.roundUpwards();
stream ["cache"] = uint32(m_logic.m_cache.size());
stream ["legacy"] = uint32(m_logic.m_legacyCache.size());
}
//--------------------------------------------------------------------------
@@ -375,8 +379,8 @@ public:
//------------------------------------------------------------------------------
Manager::Manager (Stoppable& parent)
: PropertyStream::Source ("peerfinder")
, Stoppable ("PeerFinder", parent)
: Stoppable ("PeerFinder", parent)
, PropertyStream::Source ("peerfinder")
{
}