Skip to content

Commit 0e4e8e0

Browse files
factorydroidechobt
authored andcommitted
fix(cli): remove redundant 'bytes' suffix from debug paths size output
Fixes bounty issue #1432 The format_bytes function already returns a human-readable format with appropriate units (B, KB, MB, GB). Appending 'bytes' after it resulted in inconsistent output like '1.0 KB bytes'. This fix removes the redundant suffix.
1 parent e025cbe commit 0e4e8e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cortex-cli/src/debug_cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ async fn run_file(args: FileArgs) -> Result<()> {
385385
println!();
386386
println!("Metadata");
387387
println!("{}", "-".repeat(40));
388-
println!(" Size: {} bytes", format_bytes(meta.size));
388+
println!(" Size: {}", format_bytes(meta.size));
389389
println!(
390390
" Type: {}",
391391
if meta.is_file {

0 commit comments

Comments
 (0)