1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

fix: 4.0.0 bookkeeping of protocol overhead when receiving peer messages (#5091)

This commit is contained in:
Charles Kerr 2023-02-27 20:25:15 -06:00 committed by GitHub
parent e9eb70b50f
commit 1a276fb145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -373,7 +373,7 @@ void tr_peerIo::can_read_wrapper()
if (overhead > 0) if (overhead > 0)
{ {
bandwidth().notifyBandwidthConsumed(TR_UP, overhead, false, now); bandwidth().notifyBandwidthConsumed(TR_DOWN, overhead, false, now);
} }
switch (read_state) switch (read_state)