Skip to content

Commit 9df531b

Browse files
committed
fix: bytes per second should not prefix with i
1 parent a89b1e8 commit 9df531b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/sources/git/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,12 +719,12 @@ pub fn with_fetch_options(
719719
last_update = now;
720720
}
721721
fn format_bytes(bytes: f32) -> (&'static str, f32) {
722-
static UNITS: [&str; 5] = ["", "K", "M", "G", "T"];
722+
static UNITS: [&str; 5] = ["", "Ki", "Mi", "Gi", "Ti"];
723723
let i = (bytes.log2() / 10.0).min(4.0) as usize;
724724
(UNITS[i], bytes / 1024_f32.powi(i as i32))
725725
}
726726
let (unit, rate) = format_bytes(counter.rate());
727-
format!(", {:.2}{}iB/s", rate, unit)
727+
format!(", {:.2}{}B/s", rate, unit)
728728
};
729729
progress
730730
.tick(stats.indexed_objects(), stats.total_objects(), &msg)

0 commit comments

Comments
 (0)