From a66332d66fb26dce423371a79f10a60af5e6efb8 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 23 Jul 2012 13:37:23 +0000 Subject: [PATCH] fix DHT logging build --- src/kademlia/dht_tracker.cpp | 2 +- src/kademlia/rpc_manager.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/kademlia/dht_tracker.cpp b/src/kademlia/dht_tracker.cpp index 3edb65e57..d348477d7 100644 --- a/src/kademlia/dht_tracker.cpp +++ b/src/kademlia/dht_tracker.cpp @@ -493,7 +493,7 @@ namespace libtorrent { namespace dht #ifdef TORRENT_DHT_VERBOSE_LOGGING ++m_total_message_input; - m_total_in_bytes += bytes_transferred; + m_total_in_bytes += size; #endif using libtorrent::entry; diff --git a/src/kademlia/rpc_manager.cpp b/src/kademlia/rpc_manager.cpp index eb9eb137a..39f69a117 100644 --- a/src/kademlia/rpc_manager.cpp +++ b/src/kademlia/rpc_manager.cpp @@ -181,14 +181,14 @@ rpc_manager::rpc_manager(node_id const& our_id #define PRINT_OFFSETOF(x, y) TORRENT_LOG(rpc) << " +" << offsetof(x, y) << ": " #y TORRENT_LOG(rpc) << " observer: " << sizeof(observer); - PRINT_OFFSETOF(observer, m_sent); - PRINT_OFFSETOF(observer, m_refs); - PRINT_OFFSETOF(observer, m_algorithm); - PRINT_OFFSETOF(observer, m_id); - PRINT_OFFSETOF(observer, m_addr); - PRINT_OFFSETOF(observer, m_port); - PRINT_OFFSETOF(observer, m_transaction_id); - PRINT_OFFSETOF(observer, flags); + PRINT_OFFSETOF(dht::observer, m_sent); + PRINT_OFFSETOF(dht::observer, m_refs); + PRINT_OFFSETOF(dht::observer, m_algorithm); + PRINT_OFFSETOF(dht::observer, m_id); + PRINT_OFFSETOF(dht::observer, m_addr); + PRINT_OFFSETOF(dht::observer, m_port); + PRINT_OFFSETOF(dht::observer, m_transaction_id); + PRINT_OFFSETOF(dht::observer, flags); TORRENT_LOG(rpc) << " announce_observer: " << sizeof(announce_observer); TORRENT_LOG(rpc) << " null_observer: " << sizeof(null_observer);