summarylogtreecommitdiffstats
path: root/ps-throttle-steps_all.patch
diff options
context:
space:
mode:
authorxsmile2017-03-09 18:46:37 +0100
committerxsmile2017-03-09 18:46:37 +0100
commita386ce87b56799cfb29b1667f56a63695fe781ed (patch)
tree70cbf797d882faad63eb3ff1561f0b79f247b34e /ps-throttle-steps_all.patch
downloadaur-a386ce87b56799cfb29b1667f56a63695fe781ed.tar.gz
init
Diffstat (limited to 'ps-throttle-steps_all.patch')
-rw-r--r--ps-throttle-steps_all.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/ps-throttle-steps_all.patch b/ps-throttle-steps_all.patch
new file mode 100644
index 00000000000..a68d6a4d09a
--- /dev/null
+++ b/ps-throttle-steps_all.patch
@@ -0,0 +1,68 @@
+--- rel-0.9.5/src/ui/root.cc 2015-07-02 00:32:45.000000000 +0200
++++ rtorrent-0.9.5/src/ui/root.cc 2015-07-25 18:14:20.000000000 +0200
+@@ -141,18 +141,18 @@
+ const char* keys = get_throttle_keys();
+
+- m_bindings[keys[ 0]] = std::tr1::bind(&Root::adjust_up_throttle, this, 1);
+- m_bindings[keys[ 1]] = std::tr1::bind(&Root::adjust_up_throttle, this, -1);
+- m_bindings[keys[ 2]] = std::tr1::bind(&Root::adjust_down_throttle, this, 1);
+- m_bindings[keys[ 3]] = std::tr1::bind(&Root::adjust_down_throttle, this, -1);
+-
+- m_bindings[keys[ 4]] = std::tr1::bind(&Root::adjust_up_throttle, this, 5);
+- m_bindings[keys[ 5]] = std::tr1::bind(&Root::adjust_up_throttle, this, -5);
+- m_bindings[keys[ 6]] = std::tr1::bind(&Root::adjust_down_throttle, this, 5);
+- m_bindings[keys[ 7]] = std::tr1::bind(&Root::adjust_down_throttle, this, -5);
+-
+- m_bindings[keys[ 8]] = std::tr1::bind(&Root::adjust_up_throttle, this, 50);
+- m_bindings[keys[ 9]] = std::tr1::bind(&Root::adjust_up_throttle, this, -50);
+- m_bindings[keys[10]] = std::tr1::bind(&Root::adjust_down_throttle, this, 50);
+- m_bindings[keys[11]] = std::tr1::bind(&Root::adjust_down_throttle, this, -50);
++ m_bindings[keys[ 0]] = std::tr1::bind(&Root::adjust_up_throttle, this, 5);
++ m_bindings[keys[ 1]] = std::tr1::bind(&Root::adjust_up_throttle, this, -5);
++ m_bindings[keys[ 2]] = std::tr1::bind(&Root::adjust_down_throttle, this, 5);
++ m_bindings[keys[ 3]] = std::tr1::bind(&Root::adjust_down_throttle, this, -5);
++
++ m_bindings[keys[ 4]] = std::tr1::bind(&Root::adjust_up_throttle, this, 50);
++ m_bindings[keys[ 5]] = std::tr1::bind(&Root::adjust_up_throttle, this, -50);
++ m_bindings[keys[ 6]] = std::tr1::bind(&Root::adjust_down_throttle, this, 50);
++ m_bindings[keys[ 7]] = std::tr1::bind(&Root::adjust_down_throttle, this, -50);
++
++ m_bindings[keys[ 8]] = std::tr1::bind(&Root::adjust_up_throttle, this, 500);
++ m_bindings[keys[ 9]] = std::tr1::bind(&Root::adjust_up_throttle, this, -500);
++ m_bindings[keys[10]] = std::tr1::bind(&Root::adjust_down_throttle, this, 500);
++ m_bindings[keys[11]] = std::tr1::bind(&Root::adjust_down_throttle, this, -500);
+
+ m_bindings['\x0C'] = std::tr1::bind(&display::Manager::force_redraw, m_control->display()); // ^L
+--- rel-0.9.5/src/ui/download.cc 2015-07-02 00:32:45.000000000 +0200
++++ rtorrent-0.9.5/src/ui/download.cc 2015-07-25 18:06:34.000000000 +0200
+@@ -396,18 +396,18 @@
+ const char* keys = control->ui()->get_throttle_keys();
+
+- m_bindings[keys[ 0]] = std::tr1::bind(&Download::adjust_up_throttle, this, 1);
+- m_bindings[keys[ 1]] = std::tr1::bind(&Download::adjust_up_throttle, this, -1);
+- m_bindings[keys[ 2]] = std::tr1::bind(&Download::adjust_down_throttle, this, 1);
+- m_bindings[keys[ 3]] = std::tr1::bind(&Download::adjust_down_throttle, this, -1);
++ m_bindings[keys[ 0]] = std::tr1::bind(&Download::adjust_up_throttle, this, 5);
++ m_bindings[keys[ 1]] = std::tr1::bind(&Download::adjust_up_throttle, this, -5);
++ m_bindings[keys[ 2]] = std::tr1::bind(&Download::adjust_down_throttle, this, 5);
++ m_bindings[keys[ 3]] = std::tr1::bind(&Download::adjust_down_throttle, this, -5);
+
+- m_bindings[keys[ 4]] = std::tr1::bind(&Download::adjust_up_throttle, this, 5);
+- m_bindings[keys[ 5]] = std::tr1::bind(&Download::adjust_up_throttle, this, -5);
+- m_bindings[keys[ 6]] = std::tr1::bind(&Download::adjust_down_throttle, this, 5);
+- m_bindings[keys[ 7]] = std::tr1::bind(&Download::adjust_down_throttle, this, -5);
++ m_bindings[keys[ 4]] = std::tr1::bind(&Download::adjust_up_throttle, this, 50);
++ m_bindings[keys[ 5]] = std::tr1::bind(&Download::adjust_up_throttle, this, -50);
++ m_bindings[keys[ 6]] = std::tr1::bind(&Download::adjust_down_throttle, this, 50);
++ m_bindings[keys[ 7]] = std::tr1::bind(&Download::adjust_down_throttle, this, -50);
+
+- m_bindings[keys[ 8]] = std::tr1::bind(&Download::adjust_up_throttle, this, 50);
+- m_bindings[keys[ 9]] = std::tr1::bind(&Download::adjust_up_throttle, this, -50);
+- m_bindings[keys[10]] = std::tr1::bind(&Download::adjust_down_throttle, this, 50);
+- m_bindings[keys[11]] = std::tr1::bind(&Download::adjust_down_throttle, this, -50);
++ m_bindings[keys[ 8]] = std::tr1::bind(&Download::adjust_up_throttle, this, 500);
++ m_bindings[keys[ 9]] = std::tr1::bind(&Download::adjust_up_throttle, this, -500);
++ m_bindings[keys[10]] = std::tr1::bind(&Download::adjust_down_throttle, this, 500);
++ m_bindings[keys[11]] = std::tr1::bind(&Download::adjust_down_throttle, this, -500);
+ }
+