use 15s average bw for transit limits check

Signed-off-by: R4SAS <r4sas@i2pmail.org>
i2pcontrol
R4SAS 1 year ago
parent 2a01ad953c
commit 58e351f5d9
No known key found for this signature in database
GPG Key ID: 66F6C87B98EBCFE2

@ -401,7 +401,7 @@ namespace transport
bool Transports::IsBandwidthExceeded () const
{
auto limit = i2p::context.GetBandwidthLimit() * 1024; // convert to bytes
auto bw = std::max (m_InBandwidth, m_OutBandwidth);
auto bw = std::max (m_InBandwidth15s, m_OutBandwidth15s);
return bw > limit;
}

Loading…
Cancel
Save