Skip to content

Commit 21ae3cc

Browse files
committed
fix #14
1 parent 8690c34 commit 21ae3cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "byte-unit"
3-
version = "4.0.12"
3+
version = "4.0.13"
44
authors = ["Magic Len <[email protected]>"]
55
edition = "2018"
66
repository = "https://github.com/magiclen/byte-unit"

src/byte.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ pub(crate) fn get_bytes(value: f64, unit: ByteUnit) -> u128 {
608608
ByteUnit::GB => n_gb_bytes!(value, f64),
609609
ByteUnit::GiB => n_gib_bytes!(value, f64),
610610
ByteUnit::TB => n_tb_bytes!(value, f64),
611-
ByteUnit::TiB => n_gib_bytes!(value, f64),
611+
ByteUnit::TiB => n_tib_bytes!(value, f64),
612612
ByteUnit::PB => n_pb_bytes!(value, f64),
613613
ByteUnit::PiB => n_pib_bytes!(value, f64),
614614
ByteUnit::EB => n_eb_bytes!(value, f64),
@@ -630,7 +630,7 @@ pub(crate) fn get_bytes(value: f64, unit: ByteUnit) -> u64 {
630630
ByteUnit::GB => n_gb_bytes!(value, f64),
631631
ByteUnit::GiB => n_gib_bytes!(value, f64),
632632
ByteUnit::TB => n_tb_bytes!(value, f64),
633-
ByteUnit::TiB => n_gib_bytes!(value, f64),
633+
ByteUnit::TiB => n_tib_bytes!(value, f64),
634634
ByteUnit::PB => n_pb_bytes!(value, f64),
635635
ByteUnit::PiB => n_pib_bytes!(value, f64),
636636
}

0 commit comments

Comments
 (0)