Skip to content

Commit b70c1ad

Browse files
committed
Ensure that all numbers have at least a fraction digit set to ensure that format detection leads always to floats on the influxdb side, closes influxdata#55
1 parent 526fe08 commit b70c1ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/influxdb/dto/Point.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ private StringBuilder concatenateFields() {
253253
NumberFormat numberFormat = NumberFormat.getInstance(Locale.ENGLISH);
254254
numberFormat.setMaximumFractionDigits(340);
255255
numberFormat.setGroupingUsed(false);
256+
numberFormat.setMinimumFractionDigits(1);
257+
256258
for (Entry<String, Object> field : this.fields.entrySet()) {
257259
sb.append(KEY_ESCAPER.escape(field.getKey())).append("=");
258260
loops++;

0 commit comments

Comments
 (0)