mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-29 17:15:57 +00:00
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 <w.bumiller@proxmox.com>
This commit is contained in:
parent
e5953f683c
commit
e2da4921f6
@ -28,7 +28,7 @@ pub fn sysconf(name: i32) -> i64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lazy_static! {
|
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.
|
/// Selected contents of the `/proc/PID/stat` file.
|
||||||
|
Loading…
Reference in New Issue
Block a user