mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
show expiring tunnel status
This commit is contained in:
parent
eb3fcde2f4
commit
4abe89e34b
@ -181,8 +181,11 @@ namespace util
|
|||||||
it->GetTunnelConfig ()->Print (s);
|
it->GetTunnelConfig ()->Print (s);
|
||||||
if (it->GetTunnelPool () && !it->GetTunnelPool ()->IsExploratory ())
|
if (it->GetTunnelPool () && !it->GetTunnelPool ()->IsExploratory ())
|
||||||
s << " " << "Pool";
|
s << " " << "Pool";
|
||||||
if (it->IsFailed ())
|
auto state = it->GetState ();
|
||||||
|
if (state == i2p::tunnel::eTunnelStateFailed)
|
||||||
s << " " << "Failed";
|
s << " " << "Failed";
|
||||||
|
else if (state == i2p::tunnel::eTunnelStateExpiring)
|
||||||
|
s << " " << "Exp";
|
||||||
s << " " << (int)it->GetNumSentBytes () << "<br>";
|
s << " " << (int)it->GetNumSentBytes () << "<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,8 +194,11 @@ namespace util
|
|||||||
it.second->GetTunnelConfig ()->Print (s);
|
it.second->GetTunnelConfig ()->Print (s);
|
||||||
if (it.second->GetTunnelPool () && !it.second->GetTunnelPool ()->IsExploratory ())
|
if (it.second->GetTunnelPool () && !it.second->GetTunnelPool ()->IsExploratory ())
|
||||||
s << " " << "Pool";
|
s << " " << "Pool";
|
||||||
if (it.second->IsFailed ())
|
auto state = it.second->GetState ();
|
||||||
|
if (state == i2p::tunnel::eTunnelStateFailed)
|
||||||
s << " " << "Failed";
|
s << " " << "Failed";
|
||||||
|
else if (state == i2p::tunnel::eTunnelStateExpiring)
|
||||||
|
s << " " << "Exp";
|
||||||
s << " " << (int)it.second->GetNumReceivedBytes () << "<br>";
|
s << " " << (int)it.second->GetNumReceivedBytes () << "<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user