From f7259adf83f4fa7dcd05702832b93d19b215c2af Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Tue, 28 Jul 2020 13:20:50 -0700 Subject: [PATCH] Update LastUpdate timestamp before save (#10152) --- cmd/fs-v1.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/fs-v1.go b/cmd/fs-v1.go index 16255bc81..2384c612d 100644 --- a/cmd/fs-v1.go +++ b/cmd/fs-v1.go @@ -298,6 +298,7 @@ func (fs *FSObjects) CrawlAndGetDataUsage(ctx context.Context, bf *bloomFilter, if intDataUpdateTracker.debug { logger.Info(color.Green("CrawlAndGetDataUsage:")+" Saving totals cache with %d entries", len(totalCache.Cache)) } + totalCache.Info.LastUpdate = time.Now() logger.LogIf(ctx, totalCache.save(ctx, fs, dataUsageCacheName)) cloned := totalCache.clone() updates <- cloned.dui(dataUsageRoot, buckets)