* Added interface for changing download priority.

* More throttle fiddling.

* Pop the currently uploaded piece from the send list.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@591 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-11-01 19:42:07 +00:00
parent 1a68177eca
commit 89e69adb7a
4 changed files with 22 additions and 15 deletions
+3 -2
View File
@@ -41,6 +41,7 @@
#include <netinet/in.h>
#include "core/manager.h"
#include "ui/root.h"
#include "utils/directory.h"
#include "control.h"
@@ -146,12 +147,12 @@ apply_connection_seed(Control* m, const std::string& arg) {
void
apply_global_download_rate(Control* m, int arg) {
torrent::set_down_throttle(arg * 1024);
m->ui()->receive_down_throttle(arg);
}
void
apply_global_upload_rate(Control* m, int arg) {
torrent::set_up_throttle(arg * 1024);
m->ui()->receive_up_throttle(arg);
}
void