mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
WebUI: Set global upload max limit to 10000 KB/s
This commit is contained in:
parent
159f5dc06d
commit
9d51dcb663
1 changed files with 5 additions and 2 deletions
|
@ -31,7 +31,10 @@ MochaUI.extend({
|
||||||
maximum = tmp / 1024.
|
maximum = tmp / 1024.
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
maximum = 1000
|
if (hash == "global")
|
||||||
|
maximum = 10000;
|
||||||
|
else
|
||||||
|
maximum = 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Get torrent upload limit
|
// Get torrent upload limit
|
||||||
|
@ -39,7 +42,7 @@ MochaUI.extend({
|
||||||
if (hash == 'global') {
|
if (hash == 'global') {
|
||||||
var up_limit = maximum;
|
var up_limit = maximum;
|
||||||
if (up_limit < 0) up_limit = 0;
|
if (up_limit < 0) up_limit = 0;
|
||||||
maximum = 1000;
|
maximum = 10000;
|
||||||
var mochaSlide = new Slider($('uplimitSliderarea'), $('uplimitSliderknob'), {
|
var mochaSlide = new Slider($('uplimitSliderarea'), $('uplimitSliderknob'), {
|
||||||
steps: maximum,
|
steps: maximum,
|
||||||
offset: 0,
|
offset: 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue