summarylogtreecommitdiffstats
path: root/ps-throttle-steps_all.patch
blob: a68d6a4d09a56d18b7e58e988687d04f7aa8959b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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);
 }