mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Merge pull request #333 from prometheus/round-time
Round time to nearest second in memory storage.
This commit is contained in:
commit
927435d68e
|
@ -55,7 +55,7 @@ func (s *stream) add(timestamp time.Time, value clientmodel.SampleValue) {
|
|||
// BUG(all): https://github.com/prometheus/prometheus/pull/265/files#r4336435.
|
||||
|
||||
s.values = append(s.values, &SamplePair{
|
||||
Timestamp: timestamp,
|
||||
Timestamp: timestamp.Round(time.Second).UTC(),
|
||||
Value: value,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue