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 65d8c89 commit 05bcfc4Copy full SHA for 05bcfc4
src/lib.rs
@@ -59,9 +59,10 @@ pub const TIB: u64 = 1_099_511_627_776;
59
pub const PIB: u64 = 1_125_899_906_842_624;
60
61
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
+static UNITS_SI: &str = "kMGTPE";
+
+static LN_KIB: f64 = 6.931471806; // ln 1024
65
+static LN_KB: f64 = 6.907755279; // ln 1000
66
67
pub fn kb<V: Into<u64>>(size: V) -> u64 {
68
size.into() * KB
0 commit comments