From c06c9f4b8c3995a868f543a9cfd136a9b09489cd Mon Sep 17 00:00:00 2001 From: Anders Pearson Date: Mon, 3 Apr 2017 21:58:04 +0100 Subject: [PATCH] display free space on cluster status page --- views.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views.go b/views.go index b61dde5..132b22e 100644 --- a/views.go +++ b/views.go @@ -168,6 +168,7 @@ type clusterInfoPage struct { Myself *node Neighbors []node Site *site + FreeSpace uint64 } func clusterInfoHandler(w http.ResponseWriter, r *http.Request, s *site) { @@ -302,6 +303,7 @@ const clusterTemplate = `

Node: {{.Myself.UUID}}

+
Backend{{.Site.Backend}}
Free Space{{.Site.Backend.FreeSpace}}
Base{{.Myself.BaseURL}}
Writeable{{.Myself.Writeable}}
Replication{{.Site.Replication}}