From 56b80078e516579f9d91f72217da5f48fd860817 Mon Sep 17 00:00:00 2001 From: Kane York Date: Mon, 16 Nov 2015 20:36:50 -0800 Subject: [PATCH] more /stats updates --- socketserver/server/stats.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/socketserver/server/stats.go b/socketserver/server/stats.go index 5c88c746..00cfb3de 100644 --- a/socketserver/server/stats.go +++ b/socketserver/server/stats.go @@ -7,20 +7,22 @@ import ( ) type StatsData struct { + Version int + CurrentClientCount int64 ClientConnectsTotal int64 ClientDisconnectsTotal int64 DisconnectCodes map[string]int64 - DisconnectReasons map[string]int64 CommandsIssuedTotal int64 CommandsIssuedMap map[Command]int64 MessagesSent int64 - Version int + // DisconnectReasons is at the bottom because it has indeterminate size + DisconnectReasons map[string]int64 } const StatsDataVersion = 1