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:
Audrius Butkevicius 2017-01-23 20:55:00 +00:00 committed by Jakob Borg
parent dd78177ae0
commit 2c4b92d410
1 changed files with 1 additions and 1 deletions

View File

@ -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))