From 51aa8e6928f848c37e389ac5121da0425d08591c Mon Sep 17 00:00:00 2001 From: Falco Date: Fri, 13 Jan 2017 12:52:57 +0000 Subject: [PATCH] documentation for deprecated members --- include/libtorrent/disk_io_thread.hpp | 2 ++ include/libtorrent/session_status.hpp | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/include/libtorrent/disk_io_thread.hpp b/include/libtorrent/disk_io_thread.hpp index 8fe8a3067..6cbfd0ccc 100644 --- a/include/libtorrent/disk_io_thread.hpp +++ b/include/libtorrent/disk_io_thread.hpp @@ -199,6 +199,7 @@ namespace libtorrent // the total number of buffers currently in use. // This includes the read/write disk cache as well as send and receive buffers // used in peer connections. + // deprecated, use session_stats_metrics "disk.disk_blocks_in_use" mutable int total_used_buffers; // the number of microseconds an average disk I/O job @@ -241,6 +242,7 @@ namespace libtorrent // number of jobs waiting to be issued (m_to_issue) // average over 30 seconds + // deprecated, use session_stats_metrics "disk.queued_disk_jobs" int queued_jobs; // largest ever seen number of queued jobs diff --git a/include/libtorrent/session_status.hpp b/include/libtorrent/session_status.hpp index f6aa24760..f4e28d235 100644 --- a/include/libtorrent/session_status.hpp +++ b/include/libtorrent/session_status.hpp @@ -87,23 +87,31 @@ namespace libtorrent // the total download and upload rates accumulated // from all torrents. This includes bittorrent protocol, DHT and an estimated TCP/IP // protocol overhead. + // deprecated, use session_stats_metrics "net.recv_bytes" and "net.send_bytes" + // they does include payload + protocol bytes but does not include ip protocol bytes int upload_rate; int download_rate; // the total number of bytes downloaded and // uploaded to and from all torrents. This also includes all the protocol overhead. + // deprecated, use session_stats_metrics "net.recv_bytes" and "net.send_bytes" + // they does include payload + protocol bytes but does not include ip protocol bytes boost::int64_t total_download; boost::int64_t total_upload; // the rate of the payload // down- and upload only. + // deprecated, use session_stats_metrics "net.recv_payload_bytes" int payload_upload_rate; + // deprecated, use session_stats_metrics "net.sent_payload_bytes" int payload_download_rate; // the total transfers of payload // only. The payload does not include the bittorrent protocol overhead, but only parts of the // actual files to be downloaded. + // deprecated, use session_stats_metrics "net.recv_payload_bytes" boost::int64_t total_payload_download; + // deprecated, use session_stats_metrics "net.sent_payload_bytes" boost::int64_t total_payload_upload; // the estimated TCP/IP overhead in each direction. @@ -181,6 +189,7 @@ namespace libtorrent // ``dht_node_cache`` is set to the number of nodes in the node cache. These nodes // are used to replace the regular nodes in the routing table in case any of them // becomes unresponsive. + // deprecated, use session_stats_metrics "dht.dht_nodes" and "dht.dht_nodes_cache" int dht_nodes; int dht_node_cache;