This commit is contained in:
Adam Ierymenko 2019-08-30 09:39:46 -07:00
parent 7d89511fda
commit 9918a1092f
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -739,10 +739,9 @@ int main(int argc,char **argv)
bool first = true; bool first = true;
std::lock_guard<std::mutex> l(peersByIdentity_l); std::lock_guard<std::mutex> l(peersByIdentity_l);
for(auto p=peersByIdentity.begin();p!=peersByIdentity.end();++p) { for(auto p=peersByIdentity.begin();p!=peersByIdentity.end();++p) {
if (first) { if (first)
first = false; first = false;
o << ','; else o << ',';
}
o << o <<
"{\"address\":\"" << p->first.address().toString(tmp) << "\"" "{\"address\":\"" << p->first.address().toString(tmp) << "\""
",\"latency\":-1" ",\"latency\":-1"