Skip to content

Commit

Permalink
Better file counts in backup stats
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Nov 1, 2020
1 parent bdfd515 commit 0d78bd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,17 @@ impl CopyStats {
write_count(w, " unmodified files", self.unmodified_files);
write_count(w, " modified files", self.modified_files);
write_count(w, " new files", self.new_files);
write_count(w, " small combined files", self.small_combined_files);
write_count(w, "symlinks", self.symlinks);
write_count(w, "directories", self.directories);
write_count(w, "unsupported file kind", self.unknown_kind);
writeln!(w).unwrap();

write_count(w, "empty files", self.empty_files);
write_count(w, "small combined files", self.small_combined_files);
write_count(w, "single block files", self.single_block_files);
write_count(w, "multi-block files", self.multi_block_files);
writeln!(w).unwrap();

write_count(w, "deduplicated data blocks:", self.deduplicated_blocks);
write_size(w, " saved", self.deduplicated_bytes);
writeln!(w).unwrap();
Expand Down

0 comments on commit 0d78bd9

Please sign in to comment.