diff options
author | André Colomb <src@andre.colomb.de> | 2021-03-30 21:24:53 +0200 |
---|---|---|
committer | Jakob Borg <jakob@kastelo.net> | 2021-04-06 10:37:11 +0200 |
commit | 7931af1078687329f7ab01219e211822b24a2720 (patch) | |
tree | 20e3e2f44035a5a16ddb71c5d216fed554f0e49c | |
parent | fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97 (diff) |
lib/db: Fix comparison of pending folder timestamps (fixes #7532) (#7535)
-rw-r--r-- | lib/db/observed.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db/observed.go b/lib/db/observed.go index f7460e04b8..45a116b8d5 100644 --- a/lib/db/observed.go +++ b/lib/db/observed.go @@ -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 |