|
|
@ -75,8 +75,14 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Try to retrieve the CNodeStateStats for each node.
|
|
|
|
// Try to retrieve the CNodeStateStats for each node.
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TRY_LOCK(cs_main, lockMain);
|
|
|
|
|
|
|
|
if (lockMain)
|
|
|
|
|
|
|
|
{
|
|
|
|
BOOST_FOREACH(CNodeCombinedStats &stats, cachedNodeStats)
|
|
|
|
BOOST_FOREACH(CNodeCombinedStats &stats, cachedNodeStats)
|
|
|
|
stats.fNodeStateStatsAvailable = GetNodeStateStats(stats.nodeStats.nodeid, stats.nodeStateStats);
|
|
|
|
stats.fNodeStateStatsAvailable = GetNodeStateStats(stats.nodeStats.nodeid, stats.nodeStateStats);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (sortColumn >= 0)
|
|
|
|
if (sortColumn >= 0)
|
|
|
|
// sort cacheNodeStats (use stable sort to prevent rows jumping around unneceesarily)
|
|
|
|
// sort cacheNodeStats (use stable sort to prevent rows jumping around unneceesarily)
|
|
|
|