diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 27984d27e..c545ea13a 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -4797,7 +4797,7 @@ namespace libtorrent void peer_connection::append_const_send_buffer(char const* buffer, int size) { m_send_buffer.append_buffer((char*)buffer, size, size, &nop); -#ifdef TORRENT_STATS +#if defined TORRENT_STATS && defined TORRENT_DISK_STATS m_ses.m_buffer_usage_logger << log_time() << " append_const_send_buffer: " << size << std::endl; m_ses.log_buffer_usage(); #endif