refactor: simplify of calling functions

Signed-off-by: Filip Boye-Kofi <Spuxy@seznam.cz>
This commit is contained in:
Filip Boye-Kofi 2026-05-03 10:34:35 +02:00
parent 16034ecf3b
commit 6fc7f37c7a

View File

@ -108,7 +108,7 @@ func makeTimeseries(wr *prompb.WriteRequest, labels map[string]string, m *dto.Me
timestamp := m.GetTimestampMs()
if timestamp == 0 {
timestamp = time.Now().UnixNano() / int64(time.Millisecond)
timestamp = time.Now().UnixMilli()
}
switch {