From e19c7c692a136cca10a813cba2dbea74dd07cd69 Mon Sep 17 00:00:00 2001 From: fdai7381 Date: Mon, 30 Jan 2023 20:10:48 +0100 Subject: [PATCH] fix: change duplicate 'MB' to 'GB' --- src/builtins/ls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/ls.rs b/src/builtins/ls.rs index 20b8f53..48456ae 100644 --- a/src/builtins/ls.rs +++ b/src/builtins/ls.rs @@ -60,7 +60,7 @@ fn format_filesize(filesize: u64) -> String { } else if filesize > 999_999 && filesize <= 999_999_999 { format!("{}MB", filesize / 1_000_000) } else if filesize > 999_999_999 { - format!("{}MB", filesize / 1_000_000_000) + format!("{}GB", filesize / 1_000_000_000) } else { format!("{}B", filesize) }