mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(download-clients): qBit transform speed limit from B to KB (#300)
This commit is contained in:
parent
4677057bee
commit
058a220467
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)
|
||||
options["upLimit"] = (strconv.FormatInt(action.LimitUploadSpeed, 10) * 1000)
|
||||
}
|
||||
if action.LimitDownloadSpeed > 0 {
|
||||
options["dlLimit"] = strconv.FormatInt(action.LimitDownloadSpeed, 10)
|
||||
options["dlLimit"] = (strconv.FormatInt(action.LimitDownloadSpeed, 10) * 1000)
|
||||
}
|
||||
if action.LimitRatio > 0 {
|
||||
options["ratioLimit"] = strconv.FormatFloat(action.LimitRatio, 'r', 2, 64)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue