Browse Source

use 15s average bw for transit limits check

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1827/head
R4SAS 2 years ago
parent
commit
0d523bd2a6
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      libi2pd/Transports.cpp

2
libi2pd/Transports.cpp

@ -401,7 +401,7 @@ namespace transport @@ -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…
Cancel
Save