We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8690c34 commit 21ae3ccCopy full SHA for 21ae3cc
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "byte-unit"
3
-version = "4.0.12"
+version = "4.0.13"
4
authors = ["Magic Len <[email protected]>"]
5
edition = "2018"
6
repository = "https://github.com/magiclen/byte-unit"
src/byte.rs
@@ -608,7 +608,7 @@ pub(crate) fn get_bytes(value: f64, unit: ByteUnit) -> u128 {
608
ByteUnit::GB => n_gb_bytes!(value, f64),
609
ByteUnit::GiB => n_gib_bytes!(value, f64),
610
ByteUnit::TB => n_tb_bytes!(value, f64),
611
- ByteUnit::TiB => n_gib_bytes!(value, f64),
+ ByteUnit::TiB => n_tib_bytes!(value, f64),
612
ByteUnit::PB => n_pb_bytes!(value, f64),
613
ByteUnit::PiB => n_pib_bytes!(value, f64),
614
ByteUnit::EB => n_eb_bytes!(value, f64),
@@ -630,7 +630,7 @@ pub(crate) fn get_bytes(value: f64, unit: ByteUnit) -> u64 {
630
631
632
633
634
635
636
}
0 commit comments