mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01: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
|
bool Transports::IsBandwidthExceeded () const
|
||||||
{
|
{
|
||||||
auto limit = i2p::context.GetBandwidthLimit() * 1024; // convert to bytes
|
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;
|
return bw > limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue