Code Review: Swap ordering of elements.

pull/311/head
Matt T. Proud 12 years ago
parent 5daa0a09ea
commit ecb9c7bb9d

@ -314,7 +314,7 @@ func (t *TieredStorage) seriesTooOld(f *model.Fingerprint, i time.Time) (bool, e
if t.memoryArena.HasFingerprint(f) {
samples := t.memoryArena.CloneSamples(f)
if len(samples) > 0 {
newest := samples[0].Timestamp
newest := samples[len(samples)-1].Timestamp
t.wmCache.Set(f, &Watermarks{High: newest})
return newest.Before(i), nil

Loading…
Cancel
Save