Browse Source

use 15s average bw for transit limits check

Signed-off-by: R4SAS <r4sas@i2pmail.org>
i2pcontrol
R4SAS 2 years ago
parent
commit
58e351f5d9
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      libi2pd/Transports.cpp

2
libi2pd/Transports.cpp

@ -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…
Cancel
Save