Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UI] Add flags, bytes uploaded/downloaded, RTT to Peers tab on webui #451

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ppayne
Copy link

@ppayne ppayne commented May 12, 2024

  • add a flags string to each peer indicating the current state of the peer
  • add the total bytes uploaded/downloaded by each peer
  • add the estimated round-trip time to peers to which we connected

* add a flags string to each peer indicating the current state of the peer
* add the total bytes uploaded/downloaded by each peer
* add the estimated round-trip time to peers to which we connected
@ppayne
Copy link
Author

ppayne commented May 12, 2024

Actually I created this patch 8 years ago (have had it in my own fork of this repository since 5 August 2016) and have found it invaluable - for some reason I like to know the details about the peers.

I've taken the latest pull from the develop branch, added this code, and tested it locally by building and installing and running.

@ppayne
Copy link
Author

ppayne commented May 23, 2024

I noticed #3499 Stop using deprecated LibTorrent features in which it recommends using torrent.status.flags && lt::torrent_flags::paused.

So I'm wondering if I should try something like peer.flags & lt::peer_flags::interesting rather than peer.flags & peer.interesting (see peer_info).

@ppayne
Copy link
Author

ppayne commented May 23, 2024

Well I've tried every combo I can think of and none work, not lt.peer_flags., not lt.peer_flags_t., not lt::peer_flags::, not lt::peer_flags_t::. The documentation for the Python bindings straight up don't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant