fs accounting: Add deleted files total size to status summary line - fixes issue #7190

This commit is contained in:
Kyle Reynolds 2024-04-16 11:13:38 -06:00 committed by Nick Craig-Wood
parent 68bf6aa584
commit 64734dfe41

View File

@ -464,7 +464,7 @@ func (s *StatsInfo) String() string {
s.checks, ts.totalChecks, percent(s.checks, ts.totalChecks))
}
if s.deletes != 0 || s.deletedDirs != 0 {
_, _ = fmt.Fprintf(buf, "Deleted: %10d (files), %d (dirs)\n", s.deletes, s.deletedDirs)
_, _ = fmt.Fprintf(buf, "Deleted: %10d (files), %d (dirs), %s (freed)\n", s.deletes, s.deletedDirs, fs.SizeSuffix(s.deletesSize).ByteUnit())
}
if s.renames != 0 {
_, _ = fmt.Fprintf(buf, "Renamed: %10d\n", s.renames)