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:
Daniel Nelson 2018-03-28 14:32:40 -07:00
parent df0bded83e
commit 741abbf590
1 changed files with 1 additions and 1 deletions

View File

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