|
|
@ -298,6 +298,7 @@ func (fs *FSObjects) CrawlAndGetDataUsage(ctx context.Context, bf *bloomFilter, |
|
|
|
if intDataUpdateTracker.debug { |
|
|
|
if intDataUpdateTracker.debug { |
|
|
|
logger.Info(color.Green("CrawlAndGetDataUsage:")+" Saving totals cache with %d entries", len(totalCache.Cache)) |
|
|
|
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)) |
|
|
|
logger.LogIf(ctx, totalCache.save(ctx, fs, dataUsageCacheName)) |
|
|
|
cloned := totalCache.clone() |
|
|
|
cloned := totalCache.clone() |
|
|
|
updates <- cloned.dui(dataUsageRoot, buckets) |
|
|
|
updates <- cloned.dui(dataUsageRoot, buckets) |
|
|
|