torrent-stats.go 508 B

1234567891011121314151617
  1. package torrent
  2. // Due to ConnStats, may require special alignment on some platforms. See
  3. // https://github.com/anacrolix/torrent/issues/383.
  4. type TorrentStats struct {
  5. // Aggregates stats over all connections past and present. Some values may not have much meaning
  6. // in the aggregate context.
  7. ConnStats
  8. // Ordered by expected descending quantities (if all is well).
  9. TotalPeers int
  10. PendingPeers int
  11. ActivePeers int
  12. ConnectedSeeders int
  13. HalfOpenPeers int
  14. PiecesComplete int
  15. }