We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6229a11 + 573e964 commit 44516deCopy full SHA for 44516de
src/main/java/org/influxdb/dto/Point.java
@@ -142,9 +142,14 @@ public Point build() {
142
Point point = new Point();
143
point.setFields(this.fields);
144
point.setMeasurement(this.measurement);
145
- point.setPrecision(this.precision);
+ if (this.time != 0) {
146
+ point.setTime(this.time);
147
+ point.setPrecision(this.precision);
148
+ } else {
149
+ point.setTime(System.currentTimeMillis());
150
+ point.setPrecision(TimeUnit.MILLISECONDS);
151
+ }
152
point.setTags(this.tags);
- point.setTime(this.time);
153
return point;
154
}
155
@@ -283,4 +288,4 @@ private StringBuilder formatedTime() {
283
288
return sb;
284
289
285
290
286
-}
291
+}
0 commit comments