From e10f0819ff70b75f71747b88a1ddd74367c3e49d Mon Sep 17 00:00:00 2001 From: Mark <> Date: Mon, 20 Jan 2025 21:39:13 +0100 Subject: [PATCH] remove "B" from units to conform with ls output --- src/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.rs b/src/run.rs index 7217e6f..58e2cfa 100755 --- a/src/run.rs +++ b/src/run.rs @@ -17,7 +17,7 @@ use std::{fs, io}; use crate::TuiFile; -const BYTE_UNITS: [&'static str; 6] = ["B", "KB", "MB", "GB", "TB", "PB"]; +const BYTE_UNITS: [&'static str; 6] = ["", "K", "M", "G", "T", "P"]; impl TuiFile { pub fn term_setup(&mut self, share: &mut Share) -> io::Result<()> {