* Added more logging facilities.

* Ignore logging of alloc/dealloc for chunks during initial hashing.

* Moved torrent::ResourceManager to 'src/torrent/peer/' and removed old functions from 'torrent.h'.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1212 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2011-04-18 05:07:45 +00:00
parent 83a5213fac
commit 8e15749d0c
4 changed files with 47 additions and 14 deletions
+5 -4
View File
@@ -52,6 +52,7 @@
#include <torrent/data/file_list.h>
#include <torrent/data/file_manager.h>
#include <torrent/peer/client_info.h>
#include <torrent/peer/resource_manager.h>
#include "core/download.h"
#include "core/manager.h"
@@ -293,12 +294,12 @@ print_status_info(char* first, char* last) {
char*
print_status_extra(char* first, char* last) {
first = print_buffer(first, last, " [U %i/%i]",
torrent::currently_unchoked(),
torrent::max_unchoked());
torrent::resource_manager()->currently_upload_unchoked(),
torrent::resource_manager()->max_upload_unchoked());
first = print_buffer(first, last, " [D %i/%i]",
torrent::download_unchoked(),
torrent::max_download_unchoked());
torrent::resource_manager()->currently_download_unchoked(),
torrent::resource_manager()->max_download_unchoked());
first = print_buffer(first, last, " [H %u/%u]",
control->core()->http_stack()->active(),