Skip to content

Commit 05bcfc4

Browse files
Andrew15-5robjtede
authored andcommitted
fix: swap values of LN_KIB & LN_KB
1 parent 65d8c89 commit 05bcfc4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ pub const TIB: u64 = 1_099_511_627_776;
5959
pub const PIB: u64 = 1_125_899_906_842_624;
6060

6161
static UNITS: &str = "KMGTPE";
62-
static UNITS_SI: &str = "KMGTPE";
63-
static LN_KB: f64 = 6.931471806; // ln 1024
64-
static LN_KIB: f64 = 6.907755279; // ln 1000
62+
static UNITS_SI: &str = "kMGTPE";
63+
64+
static LN_KIB: f64 = 6.931471806; // ln 1024
65+
static LN_KB: f64 = 6.907755279; // ln 1000
6566

6667
pub fn kb<V: Into<u64>>(size: V) -> u64 {
6768
size.into() * KB

0 commit comments

Comments
 (0)