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
df0bded83e
commit
741abbf590
|
@ -262,7 +262,7 @@ func appendIntField(buf []byte, value int64) []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 {
|
||||
|
|
Loading…
Reference in New Issue