Browse Source

Higher maximum download speed limit

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
7ae7a71782
  1. 2
      src/speedlimitdlg.h
  2. 2
      src/webui/scripts/parametrics.js

2
src/speedlimitdlg.h

@ -57,7 +57,7 @@ class SpeedLimitDialog : public QDialog, private Ui_bandwidth_dlg {
} }
// -2: if cancel // -2: if cancel
static long askSpeedLimit(bool *ok, QString title, long default_value, long max_value=1024000) { static long askSpeedLimit(bool *ok, QString title, long default_value, long max_value=10240000) {
SpeedLimitDialog dlg; SpeedLimitDialog dlg;
dlg.setWindowTitle(title); dlg.setWindowTitle(title);
dlg.setMaxValue(max_value/1024.); dlg.setMaxValue(max_value/1024.);

2
src/webui/scripts/parametrics.js

@ -126,7 +126,7 @@ MochaUI.extend({
if(hash == "global") { if(hash == "global") {
var dl_limit = maximum; var dl_limit = maximum;
if(dl_limit < 0) dl_limit = 0; if(dl_limit < 0) dl_limit = 0;
maximum = 1000; maximum = 10000;
var mochaSlide = new Slider($('dllimitSliderarea'), $('dllimitSliderknob'), { var mochaSlide = new Slider($('dllimitSliderarea'), $('dllimitSliderknob'), {
steps: maximum, steps: maximum,
offset: 0, offset: 0,

Loading…
Cancel
Save