From d44382dd5917cc867e7c988b0d9e37b18cd8a759 Mon Sep 17 00:00:00 2001 From: hackyminer Date: Thu, 31 Jan 2019 08:28:17 +0900 Subject: [PATCH] node/api: lowercase "k" unit --- node/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/api.go b/node/api.go index 88febdf1e4..8770ed368f 100644 --- a/node/api.go +++ b/node/api.go @@ -312,7 +312,7 @@ func NewPublicDebugAPI(node *Node) *PublicDebugAPI { // Metrics retrieves all the known system metric collected by the node. func (api *PublicDebugAPI) Metrics(raw bool) (map[string]interface{}, error) { // Create a rate formatter - units := []string{"", "K", "M", "G", "T", "P", "E", "Z", "Y"} + units := []string{"", "k", "M", "G", "T", "P", "E", "Z", "Y"} round := func(value float64, prec int) string { unit := 0 for value >= 1000 && unit < 9 {