mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00: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
|
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…
x
Reference in New Issue
Block a user