1
0
mirror of https://github.com/jht5945/finding.git synced 2025-12-27 13:20:03 +08:00

display total huge file size in human format

This commit is contained in:
2019-08-03 23:13:08 +08:00
parent 6d89c68a26
commit 38b9bba23d

View File

@@ -113,10 +113,10 @@ fn find_huge_files(options: &Options, dir_path: &Path) {
true
}).unwrap_or(());
print_lastline("");
print_message(MessageType::OK, &format!("Total file count: {}, huge file count: {}, huge file size: {}",
print_message(MessageType::OK, &format!("Total file count: {}, huge file count: {}, total huge file size: {}",
total_file_count_cell.into_inner(),
huge_file_count_cell.into_inner(),
huge_file_size_cell.into_inner()))
get_display_size(huge_file_size_cell.into_inner() as i64)));
}
fn read_file_content(file: &Path, large_file_len: u64) -> XResult<String> {