2016-07-05 05:52:33 +00:00
|
|
|
package torrent
|
|
|
|
|
2020-03-16 05:30:39 +00:00
|
|
|
// Due to ConnStats, may require special alignment on some platforms. See
|
|
|
|
// https://github.com/anacrolix/torrent/issues/383.
|
2016-07-05 05:52:33 +00:00
|
|
|
type TorrentStats struct {
|
2020-03-16 05:30:39 +00:00
|
|
|
// Aggregates stats over all connections past and present. Some values may not have much meaning
|
|
|
|
// in the aggregate context.
|
2018-02-02 08:04:56 +00:00
|
|
|
ConnStats
|
2017-04-20 20:19:58 +00:00
|
|
|
|
2018-01-29 07:18:08 +00:00
|
|
|
// Ordered by expected descending quantities (if all is well).
|
|
|
|
TotalPeers int
|
|
|
|
PendingPeers int
|
|
|
|
ActivePeers int
|
|
|
|
ConnectedSeeders int
|
|
|
|
HalfOpenPeers int
|
2021-10-07 02:50:13 +00:00
|
|
|
PiecesComplete int
|
2016-07-05 05:52:33 +00:00
|
|
|
}
|