mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(download-clients): qbittorrent type ratelimit conversion error (#301)
This commit is contained in:
parent
058a220467
commit
2ab7133dd0
1 changed files with 2 additions and 2 deletions
|
@ -56,10 +56,10 @@ func (s *service) qbittorrent(qbt *qbittorrent.Client, action domain.Action, rel
|
|||
options["tags"] = tagsArgs
|
||||
}
|
||||
if action.LimitUploadSpeed > 0 {
|
||||
options["upLimit"] = (strconv.FormatInt(action.LimitUploadSpeed, 10) * 1000)
|
||||
options["upLimit"] = strconv.FormatInt(action.LimitUploadSpeed * 1000, 10)
|
||||
}
|
||||
if action.LimitDownloadSpeed > 0 {
|
||||
options["dlLimit"] = (strconv.FormatInt(action.LimitDownloadSpeed, 10) * 1000)
|
||||
options["dlLimit"] = strconv.FormatInt(action.LimitDownloadSpeed * 1000, 10)
|
||||
}
|
||||
if action.LimitRatio > 0 {
|
||||
options["ratioLimit"] = strconv.FormatFloat(action.LimitRatio, 'r', 2, 64)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue