mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-03-24 08:09:02 +00:00
Improved peers
display
This commit is contained in:
parent
da9cdf7df3
commit
c5f3a03d1e
1 changed files with 5 additions and 5 deletions
|
@ -967,14 +967,14 @@ void P2PServer::show_peers()
|
||||||
char buf[32];
|
char buf[32];
|
||||||
log::Stream s(buf);
|
log::Stream s(buf);
|
||||||
if (client->m_P2PoolVersion) {
|
if (client->m_P2PoolVersion) {
|
||||||
s << 'v' << (client->m_P2PoolVersion >> 16) << '.' << (client->m_P2PoolVersion & 0xFFFF) << " \0";
|
s << "\tv" << (client->m_P2PoolVersion >> 16) << '.' << (client->m_P2PoolVersion & 0xFFFF) << "\t\0";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
s << "<= v2.5 \0";
|
s << "\t \t\0";
|
||||||
}
|
}
|
||||||
LOGINFO(0, (client->m_isIncoming ? "I " : "O ")
|
LOGINFO(0, (client->m_isIncoming ? "I\t" : "O\t")
|
||||||
<< log::pad_right(client->m_pingTime, 4) << " ms "
|
<< log::pad_right(client->m_pingTime, 4) << " ms\t"
|
||||||
<< log::pad_right(static_cast<const char*>(buf), 8)
|
<< static_cast<const char*>(buf)
|
||||||
<< static_cast<char*>(client->m_addrString));
|
<< static_cast<char*>(client->m_addrString));
|
||||||
++n;
|
++n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue