Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed May 18, 2020
1 parent 74bdea8 commit 7480b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "byte-unit"
version = "3.1.0"
version = "3.1.1"
authors = ["Magic Len <[email protected]>"]
edition = "2018"
repository = "https://github.com/magiclen/byte-unit"
Expand Down
4 changes: 2 additions & 2 deletions src/byte.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,8 @@ pub(crate) fn get_bytes(value: f64, unit: ByteUnit) -> u128 {
ByteUnit::PiB => n_pib_bytes!(value, f64),
ByteUnit::EB => n_eb_bytes!(value, f64),
ByteUnit::EiB => n_eib_bytes!(value, f64),
ByteUnit::ZB => n_eb_bytes!(value, f64),
ByteUnit::ZiB => n_eib_bytes!(value, f64),
ByteUnit::ZB => n_zb_bytes!(value, f64),
ByteUnit::ZiB => n_zib_bytes!(value, f64),
}
}

Expand Down

0 comments on commit 7480b64

Please sign in to comment.