Merge pull request #767 from tnothy/fix-throttling-upload-speed-limit
fix upload speed throttling
This commit is contained in:
commit
6f3e0f1eaf
|
|
@ -225,8 +225,8 @@ func New(ops Options) (c *Client, err error) {
|
|||
panic("Could not parse given Upload Limit")
|
||||
}
|
||||
}
|
||||
// Somehow 4* is necessary
|
||||
rt = rate.Every(time.Second / (4 * time.Duration(uploadLimit)))
|
||||
|
||||
rt = rate.Every(time.Second / time.Duration(uploadLimit))
|
||||
if int(uploadLimit) > minBurstSize {
|
||||
minBurstSize = int(uploadLimit)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue