R-1292: qBittorrent's 50 % rule owns the NORMAL limit only (up_limit through app/preferences), never the current speed mode's slot. Test with the alternative mode on, red-proved. Commit only.
gates / gates (push) Successful in 1m32s
gates / gates (push) Successful in 1m32s
This commit is contained in:
1 parent
3d711ee611
commit
26191911c4
7 files changed
+107
-8
No files matched your search
@@ -85,8 +85,8 @@ type fakeQB struct {
|
||||
sets []int64
|
||||
}
|
||||
|
||||
func (f *fakeQB) UploadLimit(context.Context, map[string]string) (int64, error) { return f.cur, nil }
|
||||
func (f *fakeQB) SetUploadLimit(_ context.Context, b int64) (int64, error) {
|
||||
func (f *fakeQB) NormalLimit(context.Context) (int64, error) { return f.cur, nil }
|
||||
func (f *fakeQB) SetNormalLimit(_ context.Context, b int64) (int64, error) {
|
||||
f.sets = append(f.sets, b)
|
||||
f.cur = b / 1024 * 1024 // qBittorrent keeps KiB/s
|
||||
return f.cur, nil
|
||||
|
||||
Reference in new issue
Block a user