nit compile

This commit is contained in:
Ruben Fiszel
2024-05-20 19:45:00 +02:00
parent fae845ffd3
commit d21502d478
+2 -1
View File
@@ -243,7 +243,8 @@ fn set_prof_active(new_value: bool) -> Result<(), MallctlError> {
Ok(())
}
fn bytes_to_mb(bytes: u64) -> f64 {
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
pub fn bytes_to_mb(bytes: u64) -> f64 {
const BYTES_PER_MB: f64 = 1_048_576.0;
bytes as f64 / BYTES_PER_MB
}