Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
[Qt] Add upload and download info to the peerlist (debug menu) #11499
Conversation
jonasschnelli
added
the
GUI
label
Oct 14, 2017
promag
reviewed
Oct 15, 2017
| } | ||
| } else if (role == Qt::TextAlignmentRole) { | ||
| - if (index.column() == Ping) | ||
| + // everything after ping will be right aligned | ||
| + if (index.column() >= Ping) |
promag
Oct 15, 2017
•
Contributor
Explicit is better?
switch (index.column()) {
case Ping:
case Sent:
case Received:
return Qt::AlignRight | Qt::AlignVCenter;
default:
return QVariant();
}(Remove comment above)
| @@ -56,7 +56,10 @@ class PeerTableModel : public QAbstractTableModel | ||
| NetNodeId = 0, | ||
| Address = 1, | ||
| Subversion = 2, | ||
| - Ping = 3 | ||
| + // everything after ping will be right aligned |
|
Currently the Either would be better than |
aarongolliver
added some commits
Oct 14, 2017
|
new screenshot (also notice someone with a message in their user agent like I mentioned above) |
|
Concept ACK, this is useful info, though we should avoid adding too many columns here. |
|
@laanwj agreed. I looked through I could maybe imagine someone wanting "length of time connected to that peer" or "per-peer upload/download speeds", but I think the risk of the table getting too busy is pretty low, and we could always implement a way to select which columns you want a-la (that's actually something I'm interested in doing, but it felt like too big a change for my first go at this) |
|
Tested ACK 6b1891e |
|
utACK 6b1891e. |
|
ACK 6b1891e |
aarongolliver commentedOct 14, 2017
•
Edited 1 time
-
aarongolliver
Oct 17, 2017
Makes the peer list display how much you've uploaded/downloaded from each peer.
Here's a screenshot
outdated, current of how it looks. You can now sort to see who are the peers you've uploaded the most too.I also moved
RPCConsole::FormatBytestoguiutil::formatBytesso I could use it in the peerlist