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 GitHub
parent 7f0d4f6ba8
commit fb2d85b9d5

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