fix windows build
This commit is contained in:
@@ -96,6 +96,7 @@ fn disks_ttl_ms() -> u64 {
|
|||||||
.unwrap_or(1_000)
|
.unwrap_or(1_000)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
fn processes_ttl_ms() -> u64 {
|
fn processes_ttl_ms() -> u64 {
|
||||||
static V: OnceCell<u64> = OnceCell::new();
|
static V: OnceCell<u64> = OnceCell::new();
|
||||||
*V.get_or_init(|| {
|
*V.get_or_init(|| {
|
||||||
|
|||||||
Reference in New Issue
Block a user