From 7b7e7fce6bdeeaea7f326f7193cf31fd393a1319 Mon Sep 17 00:00:00 2001 From: Justin Li Date: Fri, 1 Aug 2014 11:52:38 -0400 Subject: [PATCH] Use signed ints for current counts --- stats/stats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats/stats.go b/stats/stats.go index 49df774..682fbdc 100644 --- a/stats/stats.go +++ b/stats/stats.go @@ -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"`