mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-09 15:50:26 +03:00
use 15s average bw for transit limits check
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
2a01ad953c
commit
58e351f5d9
@ -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…
Reference in New Issue
Block a user