We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 635f4d6 commit 088f81dCopy full SHA for 088f81d
internal/cleanup/execute.go
@@ -66,11 +66,9 @@ func Execute(cfg *Config, log *logrus.Logger) error {
66
return fmt.Errorf("could not get file info: %w", err)
67
}
68
69
- if fileInfo.ModTime().After(maxRetentionDay) {
+ if fileInfo.ModTime().Before(maxRetentionDay) {
70
deletionQueue = append(deletionQueue, file)
71
mbToSave += (float64(fileInfo.Size()/ByteDivisor) / ByteDivisor)
72
- } else {
73
- log.Debugf("Skipping %s: mod time: %v", file.Name(), fileInfo.ModTime())
74
75
76
0 commit comments