node/api: lowercase "k" unit

This commit is contained in:
hackyminer 2019-01-31 08:28:17 +09:00
parent 6eed84c7ea
commit d44382dd59
No known key found for this signature in database
GPG key ID: 46D453DDCA4B766F

View file

@ -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 {