mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
lib/connections: Fix rate limiting on arm64 (fixes #3921)
Skip-check: metalint GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3922
This commit is contained in:
parent
dd78177ae0
commit
2c4b92d410
@ -65,7 +65,7 @@ func (lim *limiter) CommitConfiguration(from, to config.Configuration) bool {
|
||||
lim.read.SetLimit(1024 * rate.Limit(to.Options.MaxRecvKbps))
|
||||
}
|
||||
|
||||
if to.Options.MaxSendKbps < 0 {
|
||||
if to.Options.MaxSendKbps <= 0 {
|
||||
lim.write.SetLimit(rate.Inf)
|
||||
} else {
|
||||
lim.write.SetLimit(1024 * rate.Limit(to.Options.MaxSendKbps))
|
||||
|
Loading…
Reference in New Issue
Block a user