mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
Tweaked software version display
GoObserver will have the same version format
This commit is contained in:
parent
7293e37165
commit
9a9f6379cd
1 changed files with 8 additions and 4 deletions
|
@ -2688,7 +2688,14 @@ template<> struct log::Stream::Entry<P2PServer::P2PClient::SoftwareDisplayName>
|
|||
{
|
||||
switch (value.m_id) {
|
||||
case SoftwareID::P2Pool:
|
||||
*wrapper << "P2Pool v";
|
||||
case SoftwareID::GoObserver:
|
||||
if (value.m_id == SoftwareID::P2Pool) {
|
||||
*wrapper << "P2Pool v";
|
||||
}
|
||||
else {
|
||||
*wrapper << "GoObserver v";
|
||||
}
|
||||
|
||||
if (value.m_version <= 0x3000A) {
|
||||
// Encoding for versions <= 3.10
|
||||
*wrapper << (value.m_version >> 16) << '.' << (value.m_version & 0xFFFF);
|
||||
|
@ -2700,10 +2707,7 @@ template<> struct log::Stream::Entry<P2PServer::P2PClient::SoftwareDisplayName>
|
|||
*wrapper << '.' << (value.m_version & 0xFF);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case SoftwareID::GoObserver:
|
||||
*wrapper << "GoObserver v" << (value.m_version >> 16) << '.' << (value.m_version & 0xFFFF);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue