FedP2P/torrent_stats.go

18 lines
508 B
Go
Raw Normal View History

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