lib/db: Fix comparison of pending folder timestamps (fixes #7532) (#7535)

This commit is contained in:
André Colomb 2021-03-30 21:24:53 +02:00 committed by Jakob Borg
parent fb4fdaf4c0
commit 7931af1078

View File

@ -124,7 +124,7 @@ func (db *Lowlevel) RemovePendingFoldersBeforeTime(device protocol.DeviceID, old
return nil, err
}
defer iter.Release()
oldest = oldest.Round(time.Second)
oldest = oldest.Truncate(time.Second)
var res []string
for iter.Next() {
var of ObservedFolder