From c5f3a03d1e49ce6da4eb9b53f9ad44043c13fbd1 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Thu, 10 Nov 2022 19:56:14 +0100 Subject: [PATCH] Improved `peers` display --- src/p2p_server.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/p2p_server.cpp b/src/p2p_server.cpp index 0e0fdfa..1d8835b 100644 --- a/src/p2p_server.cpp +++ b/src/p2p_server.cpp @@ -967,14 +967,14 @@ void P2PServer::show_peers() char buf[32]; log::Stream s(buf); 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 { - s << "<= v2.5 \0"; + s << "\t \t\0"; } - LOGINFO(0, (client->m_isIncoming ? "I " : "O ") - << log::pad_right(client->m_pingTime, 4) << " ms " - << log::pad_right(static_cast(buf), 8) + LOGINFO(0, (client->m_isIncoming ? "I\t" : "O\t") + << log::pad_right(client->m_pingTime, 4) << " ms\t" + << static_cast(buf) << static_cast(client->m_addrString)); ++n; }