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.
LN_KIB
LN_KB
1 parent 04c4c29 commit 1ccab13Copy full SHA for 1ccab13
src/lib.rs
@@ -69,8 +69,8 @@ pub const PIB: u64 = 1_125_899_906_842_624;
69
70
static UNITS: &str = "KMGTPE";
71
static UNITS_SI: &str = "kMGTPE";
72
-static LN_KB: f64 = 6.931471806; // ln 1024
73
-static LN_KIB: f64 = 6.907755279; // ln 1000
+static LN_KIB: f64 = 6.931471806; // ln 1024
+static LN_KB: f64 = 6.907755279; // ln 1000
74
75
pub fn kb<V: Into<u64>>(size: V) -> u64 {
76
size.into() * KB
0 commit comments