From 9d51dcb6635670a3f84beb19b312cb8ecd16c3dc Mon Sep 17 00:00:00 2001 From: buinsky Date: Tue, 16 Dec 2014 05:01:55 +0300 Subject: [PATCH] WebUI: Set global upload max limit to 10000 KB/s --- src/webui/www/public/scripts/parametrics.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/webui/www/public/scripts/parametrics.js b/src/webui/www/public/scripts/parametrics.js index 9c9beb7d5..2cfbad76c 100644 --- a/src/webui/www/public/scripts/parametrics.js +++ b/src/webui/www/public/scripts/parametrics.js @@ -31,7 +31,10 @@ MochaUI.extend({ maximum = tmp / 1024. } else { - maximum = 1000 + if (hash == "global") + maximum = 10000; + else + maximum = 1000; } } // Get torrent upload limit @@ -39,7 +42,7 @@ MochaUI.extend({ if (hash == 'global') { var up_limit = maximum; if (up_limit < 0) up_limit = 0; - maximum = 1000; + maximum = 10000; var mochaSlide = new Slider($('uplimitSliderarea'), $('uplimitSliderknob'), { steps: maximum, offset: 0,