mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-18 23:26:17 +00:00
Added display of requesting status.
This commit is contained in:
@@ -41,6 +41,7 @@
|
|||||||
#include <torrent/exceptions.h>
|
#include <torrent/exceptions.h>
|
||||||
#include <torrent/tracker.h>
|
#include <torrent/tracker.h>
|
||||||
#include <torrent/tracker_list.h>
|
#include <torrent/tracker_list.h>
|
||||||
|
#include <torrent/tracker_controller.h>
|
||||||
|
|
||||||
#include "core/download.h"
|
#include "core/download.h"
|
||||||
|
|
||||||
@@ -62,8 +63,9 @@ WindowTrackerList::redraw() {
|
|||||||
|
|
||||||
unsigned int pos = 0;
|
unsigned int pos = 0;
|
||||||
torrent::TrackerList* tl = m_download->tracker_list();
|
torrent::TrackerList* tl = m_download->tracker_list();
|
||||||
|
torrent::TrackerController* tc = m_download->tracker_controller();
|
||||||
|
|
||||||
m_canvas->print(2, pos, "Trackers: [Key: %08x]", tl->key());
|
m_canvas->print(2, pos, "Trackers: [Key: %08x] [Requesting: %s]", tl->key(), tc->is_requesting() ? "yes" : "no");
|
||||||
++pos;
|
++pos;
|
||||||
|
|
||||||
if (tl->size() == 0 || *m_focus >= tl->size())
|
if (tl->size() == 0 || *m_focus >= tl->size())
|
||||||
|
|||||||
Reference in New Issue
Block a user