mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-21 08:36:18 +00:00
Added counter for new peers each tracker received last request.
This commit is contained in:
@@ -66,6 +66,9 @@ initialize_command_tracker() {
|
|||||||
CMD2_TRACKER ("t.type", std::bind(&torrent::Tracker::type, std::placeholders::_1));
|
CMD2_TRACKER ("t.type", std::bind(&torrent::Tracker::type, std::placeholders::_1));
|
||||||
CMD2_TRACKER ("t.id", std::bind(&torrent::Tracker::tracker_id, std::placeholders::_1));
|
CMD2_TRACKER ("t.id", std::bind(&torrent::Tracker::tracker_id, std::placeholders::_1));
|
||||||
|
|
||||||
|
CMD2_TRACKER ("t.latest_event", std::bind(&torrent::Tracker::latest_event, std::placeholders::_1));
|
||||||
|
CMD2_TRACKER ("t.latest_new_peers", std::bind(&torrent::Tracker::latest_new_peers, std::placeholders::_1));
|
||||||
|
|
||||||
// Time since last connection, connection attempt.
|
// Time since last connection, connection attempt.
|
||||||
|
|
||||||
CMD2_TRACKER ("t.normal_interval", std::bind(&torrent::Tracker::normal_interval, std::placeholders::_1));
|
CMD2_TRACKER ("t.normal_interval", std::bind(&torrent::Tracker::normal_interval, std::placeholders::_1));
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ WindowTrackerList::redraw() {
|
|||||||
tracker->url().c_str());
|
tracker->url().c_str());
|
||||||
|
|
||||||
if (pos < m_canvas->height())
|
if (pos < m_canvas->height())
|
||||||
m_canvas->print(4, pos++, "Id: %s Counters: %uf / %us (%u) Enabled: %s Open: %s S/L/D: %u/%u/%u",
|
m_canvas->print(4, pos++, "Id: %s Counters: %uf / %us (%u) Enabled: %s Open: %s S/L/D: %u/%u/%u (%u)",
|
||||||
rak::copy_escape_html(tracker->tracker_id()).c_str(),
|
rak::copy_escape_html(tracker->tracker_id()).c_str(),
|
||||||
tracker->failed_counter(),
|
tracker->failed_counter(),
|
||||||
tracker->success_counter(),
|
tracker->success_counter(),
|
||||||
@@ -98,7 +98,8 @@ WindowTrackerList::redraw() {
|
|||||||
tracker->is_busy() ? "yes" : " no",
|
tracker->is_busy() ? "yes" : " no",
|
||||||
tracker->scrape_complete(),
|
tracker->scrape_complete(),
|
||||||
tracker->scrape_incomplete(),
|
tracker->scrape_incomplete(),
|
||||||
tracker->scrape_downloaded());
|
tracker->scrape_downloaded(),
|
||||||
|
tracker->latest_new_peers());
|
||||||
|
|
||||||
// m_canvas->print(4, pos++, "Id: %s Focus: %s Enabled: %s Open: %s Timer: %u/%u",
|
// m_canvas->print(4, pos++, "Id: %s Focus: %s Enabled: %s Open: %s Timer: %u/%u",
|
||||||
// rak::copy_escape_html(tracker->tracker_id()).c_str(),
|
// rak::copy_escape_html(tracker->tracker_id()).c_str(),
|
||||||
|
|||||||
Reference in New Issue
Block a user