Skip to content

Commit

Permalink
I2CP: Increase % of router bandwidth reported to clients
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzi2p committed Jun 27, 2024
1 parent d765f85 commit ddfe816
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ private void sendStatusMessage(SessionId id, int status) {
}

/**
* Divide router limit by 1.75 for overhead.
* Divide router limit by 1.5 for overhead.
* This could someday give a different answer to each client.
* But it's not enforced anywhere.
*
Expand All @@ -833,7 +833,7 @@ protected void handleGetBWLimits(GetBandwidthLimitsMessage message) {
int out = _context.bandwidthLimiter().getOutboundKBytesPerSecond();
int inb = _context.bandwidthLimiter().getInboundBurstKBytesPerSecond();
int outb = _context.bandwidthLimiter().getOutboundBurstKBytesPerSecond();
BandwidthLimitsMessage msg = new BandwidthLimitsMessage(in * 4 / 7, out * 4 / 7, in, inb, out, outb, 1);
BandwidthLimitsMessage msg = new BandwidthLimitsMessage(in * 2 / 3, out * 2 / 3, in, inb, out, outb, 1);
try {
_runner.doSend(msg);
} catch (I2CPMessageException ime) {
Expand Down

0 comments on commit ddfe816

Please sign in to comment.