mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-12 16:16:40 +02:00
refactor: simplify of calling functions
Signed-off-by: Filip Boye-Kofi <Spuxy@seznam.cz>
This commit is contained in:
parent
16034ecf3b
commit
6fc7f37c7a
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user