mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-08-23 17:47:29 +00:00
Reorder peer stats to provide a more readable output
This commit is contained in:
parent
bacf4f0fd4
commit
4295ad739c
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
// Use of this source code is governed by the BSD 2-Clause license,
|
// Use of this source code is governed by the BSD 2-Clause license,
|
||||||
// which can be found in the LICENSE file.
|
// which can be found in the LICENSE file.
|
||||||
|
|
||||||
// Package query implements a fast, simple URL Query parser.
|
// Package query implements a faster single-purpose URL Query parser.
|
||||||
package query
|
package query
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -43,17 +43,17 @@ func init() {
|
||||||
|
|
||||||
type PeerStats struct {
|
type PeerStats struct {
|
||||||
// Stats for all peers.
|
// Stats for all peers.
|
||||||
Completed uint64 `json:"completed"` // Number of transitions from leech to seed.
|
Current uint64 `json:"current"` // Current total peer count.
|
||||||
Joined uint64 `json:"joined"` // Total peers that announced.
|
Joined uint64 `json:"joined"` // Total peers that announced.
|
||||||
Left uint64 `json:"left"` // Total peers that paused or stopped.
|
Left uint64 `json:"left"` // Total peers that paused or stopped.
|
||||||
Reaped uint64 `json:"reaped"` // Total peers cleaned up after inactivity.
|
Reaped uint64 `json:"reaped"` // Total peers cleaned up after inactivity.
|
||||||
Current uint64 `json:"current"` // Current total peer count.
|
Completed uint64 `json:"completed"` // Number of transitions from leech to seed.
|
||||||
|
|
||||||
// Stats for seeds only (subset of total).
|
// Stats for seeds only (subset of total).
|
||||||
|
SeedsCurrent uint64 `json:"seeds_current"` // Current seed count.
|
||||||
SeedsJoined uint64 `json:"seeds_joined"` // Seeds that announced (does not included leechers that completed).
|
SeedsJoined uint64 `json:"seeds_joined"` // Seeds that announced (does not included leechers that completed).
|
||||||
SeedsLeft uint64 `json:"seeds_left"` // Seeds that paused or stopped.
|
SeedsLeft uint64 `json:"seeds_left"` // Seeds that paused or stopped.
|
||||||
SeedsReaped uint64 `json:"seeds_reaped"` // Seeds cleaned up after inactivity.
|
SeedsReaped uint64 `json:"seeds_reaped"` // Seeds cleaned up after inactivity.
|
||||||
SeedsCurrent uint64 `json:"seeds_current"` // Current seed count.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type PercentileTimes struct {
|
type PercentileTimes struct {
|
||||||
|
|
Loading…
Add table
Reference in a new issue