Skip to content

Commit 0f83838

Browse files
committed
Final fix to timestamp
1 parent 1d6d5de commit 0f83838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/it/renvins/serverpulse/common/MetricsService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private List<String> buildPoints(SyncMetricsSnapshot snapshot, long usedHeap, lo
161161
.addTag("world", worldName)
162162
.addField("entities_count", worldData.getEntities())
163163
.addField("loaded_chunks", worldData.getLoadedChunks())
164-
.setTimestamp(Instant.now().getNano());
164+
.setTimestamp(Instant.now().toEpochMilli() * 1_000_000);
165165
addConfigTags(worldPoint);
166166
points.add(worldPoint.toLineProtocol());
167167
}

0 commit comments

Comments
 (0)