From b113760cf4a96649a004fd60933c4204be307bf7 Mon Sep 17 00:00:00 2001 From: chrislusf Date: Tue, 24 Mar 2015 00:09:20 -0700 Subject: [PATCH] [ui] format peers --- go/weed/weed_server/master_server_handlers_ui.go | 2 +- go/weed/weed_server/master_ui/templates.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go/weed/weed_server/master_server_handlers_ui.go b/go/weed/weed_server/master_server_handlers_ui.go index 9f9b179da..cdcae714e 100644 --- a/go/weed/weed_server/master_server_handlers_ui.go +++ b/go/weed/weed_server/master_server_handlers_ui.go @@ -15,7 +15,7 @@ func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) Version string Topology interface{} Peers interface{} - Stats interface{} + Stats map[string]interface{} Counters *stats.ServerStats }{ util.VERSION, diff --git a/go/weed/weed_server/master_ui/templates.go b/go/weed/weed_server/master_ui/templates.go index 42adacb5d..96b8bd5ce 100644 --- a/go/weed/weed_server/master_ui/templates.go +++ b/go/weed/weed_server/master_ui/templates.go @@ -32,8 +32,8 @@ var StatusTpl = template.Must(template.New("status").Parse(`