From ee840904d2f09e7d6ca444b170fc0e9fc3658dc3 Mon Sep 17 00:00:00 2001 From: "Matt T. Proud" Date: Fri, 21 Jun 2013 11:32:53 +0200 Subject: [PATCH] Code Review: !Before -> After. --- storage/metric/leveldb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/metric/leveldb.go b/storage/metric/leveldb.go index 7de237e17..09f27e3c9 100644 --- a/storage/metric/leveldb.go +++ b/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) }