Code Review: !Before -> After.

This commit is contained in:
Matt T. Proud 2013-06-21 11:32:53 +02:00
parent 2d5de99fbf
commit ee840904d2

View file

@ -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)
}