From e2da4921f6b74bc65600b2c9965f6b5fa0b273b4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 25 May 2020 10:43:24 +0200 Subject: [PATCH] make CLOCK_TICKS public The ProcFsStat type uses values which need to be scaled by it, so it makes sense to have this be public. Signed-off-by: Wolfgang Bumiller --- proxmox/src/sys/linux/procfs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox/src/sys/linux/procfs.rs b/proxmox/src/sys/linux/procfs.rs index f62bece4..b95d68f0 100644 --- a/proxmox/src/sys/linux/procfs.rs +++ b/proxmox/src/sys/linux/procfs.rs @@ -28,7 +28,7 @@ pub fn sysconf(name: i32) -> i64 { } lazy_static! { - static ref CLOCK_TICKS: f64 = sysconf(libc::_SC_CLK_TCK) as f64; + pub static ref CLOCK_TICKS: f64 = sysconf(libc::_SC_CLK_TCK) as f64; } /// Selected contents of the `/proc/PID/stat` file.