Skip to content

Commit

Permalink
Send nanoseconds i stedet for milliseconds for real.
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-santa committed May 12, 2021
1 parent 3818a21 commit b2b24d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class InfluxMetricsReporter internal constructor(influxConfig: InfluxConfig, pri

override suspend fun registerDataPoint(measurementName: String, fields: Map<String, Any>, tags: Map<String, String>) {
val point = Point.measurement(measurementName)
.time(System.currentTimeMillis() * 1000, TimeUnit.NANOSECONDS)
.time(System.currentTimeMillis() * 1000000, TimeUnit.NANOSECONDS)
.tag(tags)
.tag(DEFAULT_TAGS)
.fields(fields)
Expand Down

0 comments on commit b2b24d8

Please sign in to comment.