derp: fix JSON field typo, sort fields to make it easier to see inconsistencies

This commit is contained in:
Brad Fitzpatrick 2020-02-21 14:18:09 -08:00
parent 6cd81d5d1f
commit 3317531021
1 changed files with 6 additions and 6 deletions

View File

@ -424,11 +424,11 @@ func (s *Server) Stats() *ServerStats {
CurrentConnections: len(s.netConns),
UniqueClientsEver: len(s.clientsEver),
TotalAccepts: s.accepts,
PacketsSent: atomic.LoadInt64(&s.packetsSent),
BytesSent: atomic.LoadInt64(&s.bytesSent),
PacketsReceived: atomic.LoadInt64(&s.packetsRecv),
BytesReceived: atomic.LoadInt64(&s.bytesRecv),
BytesSent: atomic.LoadInt64(&s.bytesSent),
PacketsDropped: atomic.LoadInt64(&s.packetsDropped),
PacketsReceived: atomic.LoadInt64(&s.packetsRecv),
PacketsSent: atomic.LoadInt64(&s.packetsSent),
}
}
@ -457,9 +457,9 @@ type ServerStats struct {
CurrentConnections int `json:"currentClients"`
UniqueClientsEver int `json:"uniqueClientsEver"`
TotalAccepts int64 `json:"totalAccepts"`
PacketsSent int64 `json:"packetsSent"`
BytesReceived int64 `json:"bytesReceived"`
BytesSent int64 `json:"bytesSent"`
PacketsReceived int64 `json:"packetsReceived"`
BytesReceived int64 `json:"bytessReceived"`
PacketsDropped int64 `json:"packetsDropped"`
PacketsReceived int64 `json:"packetsReceived"`
PacketsSent int64 `json:"packetsSent"`
}