mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Code Review: !Before -> After.
This commit is contained in:
parent
2d5de99fbf
commit
ee840904d2
|
@ -506,7 +506,7 @@ func (l *LevelDBMetricPersistence) refreshHighWatermarks(groups map[model.Finger
|
|||
}
|
||||
|
||||
// BUG(matt): Repace this with watermark management.
|
||||
if !newestSampleTimestamp.Before(time.Unix(value.GetTimestamp(), 0)) {
|
||||
if newestSampleTimestamp.After(time.Unix(value.GetTimestamp(), 0)) {
|
||||
value.Timestamp = proto.Int64(newestSampleTimestamp.Unix())
|
||||
batch.Put(fingerprint.ToDTO(), value)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue