Code Review: !Before -> After.

pull/311/head
Matt T. Proud 13 years ago
parent 2d5de99fbf
commit ee840904d2
  1. 2
      storage/metric/leveldb.go

@ -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…
Cancel
Save