mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-09-04 04:35:10 +00:00
Use signed ints for current counts
This commit is contained in:
parent
b778b3ea40
commit
7b7e7fce6b
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ const (
|
||||||
var DefaultStats *Stats
|
var DefaultStats *Stats
|
||||||
|
|
||||||
type PeerClassStats struct {
|
type PeerClassStats struct {
|
||||||
Current uint64 // Current peer count.
|
Current int64 // Current peer count.
|
||||||
Joined uint64 // Peers that announced.
|
Joined uint64 // Peers that announced.
|
||||||
Left uint64 // Peers that paused or stopped.
|
Left uint64 // Peers that paused or stopped.
|
||||||
Reaped uint64 // Peers cleaned up after inactivity.
|
Reaped uint64 // Peers cleaned up after inactivity.
|
||||||
|
@ -69,7 +69,7 @@ type PercentileTimes struct {
|
||||||
type Stats struct {
|
type Stats struct {
|
||||||
Started time.Time // Time at which Chihaya was booted.
|
Started time.Time // Time at which Chihaya was booted.
|
||||||
|
|
||||||
OpenConnections uint64 `json:"Connections.Open"`
|
OpenConnections int64 `json:"Connections.Open"`
|
||||||
ConnectionsAccepted uint64 `json:"Connections.Accepted"`
|
ConnectionsAccepted uint64 `json:"Connections.Accepted"`
|
||||||
BytesTransmitted uint64 `json:"BytesTransmitted"`
|
BytesTransmitted uint64 `json:"BytesTransmitted"`
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue