mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
use 15s average bw for transit limits check
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
8943200ffa
commit
0d523bd2a6
@ -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