|
|
@ -63,7 +63,7 @@ public: |
|
|
|
#if QT_VERSION >= 0x040700 |
|
|
|
#if QT_VERSION >= 0x040700 |
|
|
|
cachedNodeStats.reserve(vNodes.size()); |
|
|
|
cachedNodeStats.reserve(vNodes.size()); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
BOOST_FOREACH(CNode* pnode, vNodes) |
|
|
|
foreach (CNode* pnode, vNodes) |
|
|
|
{ |
|
|
|
{ |
|
|
|
CNodeCombinedStats stats; |
|
|
|
CNodeCombinedStats stats; |
|
|
|
stats.nodeStateStats.nMisbehavior = 0; |
|
|
|
stats.nodeStateStats.nMisbehavior = 0; |
|
|
@ -92,7 +92,7 @@ public: |
|
|
|
// build index map
|
|
|
|
// build index map
|
|
|
|
mapNodeRows.clear(); |
|
|
|
mapNodeRows.clear(); |
|
|
|
int row = 0; |
|
|
|
int row = 0; |
|
|
|
BOOST_FOREACH(CNodeCombinedStats &stats, cachedNodeStats) |
|
|
|
foreach (const CNodeCombinedStats& stats, cachedNodeStats) |
|
|
|
mapNodeRows.insert(std::pair<NodeId, int>(stats.nodeStats.nodeid, row++)); |
|
|
|
mapNodeRows.insert(std::pair<NodeId, int>(stats.nodeStats.nodeid, row++)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|