From 147cf0d7f27439ea5966899f55b1310e0abce58a Mon Sep 17 00:00:00 2001 From: marco-ragusa Date: Mon, 18 Nov 2024 00:49:18 +0100 Subject: [PATCH] Implement upload limit burst to 16 KiB --- cmd/torrent/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/torrent/download.go b/cmd/torrent/download.go index 9bc16c1598..8bd8551158 100644 --- a/cmd/torrent/download.go +++ b/cmd/torrent/download.go @@ -328,7 +328,7 @@ func downloadErr(flags downloadFlags) error { } if flags.UploadRate != nil { // TODO: I think the upload rate limit could be much lower. - clientConfig.UploadRateLimiter = rate.NewLimiter(rate.Limit(*flags.UploadRate), 256<<10) + clientConfig.UploadRateLimiter = rate.NewLimiter(rate.Limit(*flags.UploadRate), 16<<10) } if flags.DownloadRate != nil { clientConfig.DownloadRateLimiter = rate.NewLimiter(rate.Limit(*flags.DownloadRate), 1<<16)