Revert to 'f' formatting for floats in line protocol
Using 'g' with -1 precision switches over to scientific notation for too small of numbers, and setting a larger precision results in larger than desired representations.
This commit is contained in:
parent
5be1198274
commit
ef112e6ee7
|
@ -262,7 +262,7 @@ func appendIntField(buf []byte, value int64) []byte {
|
||||||
}
|
}
|
||||||
|
|
||||||
func appendFloatField(buf []byte, value float64) []byte {
|
func appendFloatField(buf []byte, value float64) []byte {
|
||||||
return strconv.AppendFloat(buf, value, 'g', -1, 64)
|
return strconv.AppendFloat(buf, value, 'f', -1, 64)
|
||||||
}
|
}
|
||||||
|
|
||||||
func appendBoolField(buf []byte, value bool) []byte {
|
func appendBoolField(buf []byte, value bool) []byte {
|
||||||
|
|
Loading…
Reference in New Issue