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