make to text work more intuitively (#5733)

This commit is contained in:
Darren Schroeder
2022-06-07 14:43:24 -05:00
committed by GitHub
parent 8c74b1e437
commit c57f41e5f2
2 changed files with 46 additions and 5 deletions

View File

@ -2361,7 +2361,7 @@ pub fn format_duration(duration: i64) -> String {
)
}
fn format_filesize_from_conf(num_bytes: i64, config: &Config) -> String {
pub fn format_filesize_from_conf(num_bytes: i64, config: &Config) -> String {
// We need to take into account config.filesize_metric so, if someone asks for KB
// filesize_metric is true, return KiB
format_filesize(