Browse Source

fix: change duplicate 'MB' to 'GB'

main
fdai7381 2 years ago
committed by fdai7451
parent
commit
e19c7c692a
  1. 2
      src/builtins/ls.rs

2
src/builtins/ls.rs

@ -60,7 +60,7 @@ fn format_filesize(filesize: u64) -> String {
} else if filesize > 999_999 && filesize <= 999_999_999 { } else if filesize > 999_999 && filesize <= 999_999_999 {
format!("{}MB", filesize / 1_000_000) format!("{}MB", filesize / 1_000_000)
} else if filesize > 999_999_999 { } else if filesize > 999_999_999 {
format!("{}MB", filesize / 1_000_000_000)
format!("{}GB", filesize / 1_000_000_000)
} else { } else {
format!("{}B", filesize) format!("{}B", filesize)
} }

Loading…
Cancel
Save