diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a3ba2f72..23bafebb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ * [CHANGE] ring/client: It's now possible to set different value than `consul` as default KV store. #120 * [CHANGE] Lifecycler: Default value of lifecycler's `final-sleep` is now `0s` (i.e. no sleep). #121 * [CHANGE] Lifecycler: It's now possible to change default value of lifecycler's `final-sleep`. #121 +* [CHANGE] Minor cosmetic changes in ring and memberlist HTTP status templates. #149 * [ENHANCEMENT] Add middleware package. #38 * [ENHANCEMENT] Add the ring package #45 * [ENHANCEMENT] Add limiter package. #41 diff --git a/ring/http.go b/ring/http.go index 0fa0e036b..809013f5a 100644 --- a/ring/http.go +++ b/ring/http.go @@ -119,7 +119,7 @@ func (h *ringPageHandler) handle(w http.ResponseWriter, req *http.Request) { Tokens: ing.Tokens, Zone: ing.Zone, NumTokens: len(ing.Tokens), - Ownership: float64(ownedTokens[id]) / float64(math.MaxUint32), + Ownership: (float64(ownedTokens[id]) / float64(math.MaxUint32)) * 100, }) }