|
|
@ -2420,9 +2420,8 @@ void CConnman::GetNodeStats(std::vector<CNodeStats>& vstats) |
|
|
|
vstats.reserve(vNodes.size()); |
|
|
|
vstats.reserve(vNodes.size()); |
|
|
|
for(std::vector<CNode*>::iterator it = vNodes.begin(); it != vNodes.end(); ++it) { |
|
|
|
for(std::vector<CNode*>::iterator it = vNodes.begin(); it != vNodes.end(); ++it) { |
|
|
|
CNode* pnode = *it; |
|
|
|
CNode* pnode = *it; |
|
|
|
CNodeStats stats; |
|
|
|
vstats.emplace_back(); |
|
|
|
pnode->copyStats(stats); |
|
|
|
pnode->copyStats(vstats.back()); |
|
|
|
vstats.push_back(stats); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|