use 15s average bw for transit limits check

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2022-12-12 18:22:16 +03:00
parent 2a01ad953c
commit 58e351f5d9
No known key found for this signature in database
GPG Key ID: 66F6C87B98EBCFE2

View File

@ -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;
}