Skip to content

Commit

Permalink
display free space on cluster status page
Browse files Browse the repository at this point in the history
  • Loading branch information
thraxil committed Apr 3, 2017
1 parent 90c9e0e commit c06c9f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -302,6 +303,7 @@ const clusterTemplate = `
<h1>Node: {{.Myself.UUID}}</h1>
<table class="table">
<tr><th>Backend</th><td>{{.Site.Backend}}</td></tr>
<tr><th>Free Space</th><td>{{.Site.Backend.FreeSpace}}</td></tr>
<tr><th>Base</th><td>{{.Myself.BaseURL}}</td></tr>
<tr><th>Writeable</th><td>{{.Myself.Writeable}}</td></tr>
<tr><th>Replication</th><td>{{.Site.Replication}}</td></tr>
Expand Down

0 comments on commit c06c9f4

Please sign in to comment.