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
|
||||
|
||||
type PeerClassStats struct {
|
||||
Current uint64 // Current peer count.
|
||||
Current int64 // Current peer count.
|
||||
Joined uint64 // Peers that announced.
|
||||
Left uint64 // Peers that paused or stopped.
|
||||
Reaped uint64 // Peers cleaned up after inactivity.
|
||||
|
@ -69,7 +69,7 @@ type PercentileTimes struct {
|
|||
type Stats struct {
|
||||
Started time.Time // Time at which Chihaya was booted.
|
||||
|
||||
OpenConnections uint64 `json:"Connections.Open"`
|
||||
OpenConnections int64 `json:"Connections.Open"`
|
||||
ConnectionsAccepted uint64 `json:"Connections.Accepted"`
|
||||
BytesTransmitted uint64 `json:"BytesTransmitted"`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue