diff --git a/stores/flatten.go b/stores/flatten.go index 1560b20dc..85ad63bc4 100644 --- a/stores/flatten.go +++ b/stores/flatten.go @@ -278,7 +278,7 @@ func EncodeNonStrings(m map[string]interface{}) { // The JSON unserializer treats every number as a float, so the above 'if' // never applies in that situation. if vFloat, ok := v.(float64); ok { - m["shamir_threshold"] = fmt.Sprintf("%g", vFloat) + m["shamir_threshold"] = fmt.Sprintf("%.0f", vFloat) } } }